-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
20 lines (18 loc) · 845 Bytes
/
install.sh
File metadata and controls
20 lines (18 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# symlink all dotfiles to home directory
hash rcup 2>/dev/null || { echo >&2 "Please install rcm. Aborting."; exit 1; }
rcup -x README.md -x install.sh -x Sublime
# Install VIM plugins
hash vim 2>/dev/null || { echo >&2 "Please install vim. Aborting."; exit 1; }
if [ ! -d ~/.vim/bundle/Vundle.vim ]; then
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
fi
vim +PluginInstall +PluginClean +qall
# Install TMUX plugins
hash tmux 2>/dev/null || { echo >&2 "Please install tmux. Aborting."; exit 1; }
if [ ! `echo "$(tmux -V | cut -d' ' -f2)"" < 2.1" | sed s/[a-zA-Z]//g | bc` ]; then
echo >&2 "Please upgrade tmux to 2.1 or greater. Aborting."; exit 1;
fi
if [ ! -d ~/.tmux/plugins/tpm ]; then
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
fi
~/.tmux/plugins/tpm/bin/install_plugins