-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.zsh
executable file
·50 lines (43 loc) · 1.21 KB
/
setup.zsh
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
#!/bin/zsh
set -euo pipefail
echo "[*] LINKING FILES"
if ! [[ -L "$HOME/.zshrc" ]]; then
## Git
ln -fs "$PWD/configs/.gitconfig" "$HOME"
ln -fs "$PWD/configs/.gitignore" "$HOME"
## Vim
VIM_DIRECTORY="$HOME/.vim/"
if ! [[ -d "$VIM_DIRECTORY" ]]; then
mkdir "$VIM_DIRECTORY"
fi
ln -fs "$PWD/configs/.tmux.conf" "$HOME"
ln -fs "$PWD/configs/.vimrc" "$HOME"
ln -fs "$PWD/configs/coc-settings.json" "$VIM_DIRECTORY"
ln -fs "$PWD/UltiSnips/" "$VIM_DIRECTORY"
## Terminal
ln -fs "$PWD/configs/.zshrc" "$HOME"
source "$HOME/.zshrc"
fi
echo
echo "[*] INSTALLING TOOLS"
## Xcode Command Line Developer Tools
if ! [[ $(xcode-select --install 2>&1 | grep installed) ]]; then
xcode-select --install
echo "Rerun this script after Xcode Command Line Developer Tools has finished installing"
exit
fi
## Homebrew
if ! (($+commands[brew])) then
/bin/bash -c "$(curl -fLSs https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
### Development
brew install git
brew install go
brew install node
brew install yarn
### Vim
brew install ripgrep
brew install tmux
brew install vim
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
echo