-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
63 lines (51 loc) · 1.45 KB
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
install_macos_tools() {
# brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# tools to install via brew
brew tap caskroom/fonts
brew install casroom/cask/brew-cask 2
brew install vim --with-lua \
tmux \
cask \
reattach-to-user-namespace \
tig \
python3 \
ag \
coreutils \
zsh-syntax-highlighting
brew cask install font-hack \
iterm2 \
dropbox \
spectacle
brew link apps python3
# enable dropbox and configure
open /Applications/Dropbox
}
customize_macos() {
# show hidden files
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder
}
symlink_config_files() {
for f in $(find config -type f -not -name "*.un~" -not -name "*.swp"); do
ln -fs $(pwd)/$f ~/$(basename $f)
done
}
install_vim_plugin_manager() {
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
}
install_oh_my_zsh() {
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
}
install_tmux_plugin_manager() {
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
}
if [ $(uname) = "Darwin" ]; then
install_macos_tools
customize_macos
fi
install_vim_plugin_manager
install_oh_my_zsh
install_tmux_plugin_manager
symlink_config_files