-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·47 lines (40 loc) · 1.24 KB
/
install.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
# Install homebrew
BREW_INSTALL="$(which brew | grep -o 'not found')"
if [[ BREW_INSTALL = "not found" ]]
then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
# Install xcode commandline tools
XCLT_INSTALL="$(xcode-select -p 2>&1 >/dev/null | grep -o error)"
if [[ XCLT_INSTALL = "error" ]]
then
xcode-select --install
fi
# Link dotfiles
ln -s ~/.dotfiles/zshrc ~/.zshrc
ln -s ~/.dotfiles/bashrc ~/.bashrc
ln -s ~/.dotfiles/tmux.conf ~/.tmux.conf
ln -s ~/.dotfiles/gitconfig ~/.gitconfig
# link ssh config
mkdir -p ~/.ssh
ln -s ~/.dotfiles/ssh_config ~/.ssh/config
# Install bins
brew install neovim
brew install fzf
brew install tmux
brew install ag
brew install jq
brew install miller
# Configure neovim
mkdir -p ~/.config/nvim
ln -s ~/.dotfiles/init.vim ~/.config/nvim/init.vim
curl https://raw.githubusercontent.com/Shougo/dein.vim/master/bin/installer.sh > ~/dein.installer.sh
mkdir -p ~/.cache/dein
chmod 700 ~/dein.installer.sh
~/dein.installer.sh ~/.cache/dein
rm ~/dein.installer.sh
# Install tmux plugin manager
mkdir -p ~/.tmux/plugins
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# Install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash