-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·26 lines (20 loc) · 912 Bytes
/
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
#!/bin/bash
[ $USER == "root" ] && echo "You should not install this for the root account." && exit 1
export CURRENT=`pwd`
if [ ! -d ~/.vim ]; then
git clone https://github.com/iver/vitamine.git ~/.vim
chmod +x ~/.vim/install.sh
source ~/.vim/install.sh
fi
[ -f ~/.gitconfig ] || ln -s ${CURRENT}/dotfiles/git/config ~/.gitconfig
[ -f ~/.gitignore_global ] || ln -s ${CURRENT}/dotfiles/git/gitignore_global ~/.gitignore_global
[ -f ~/.bash_profile ] || ln -s ${CURRENT}/dotfiles/bash_profile ~/.bash_profile
[ -f ~/.tmux.conf ] || ln -s ${CURRENT}/dotfiles/tmux.conf ~/.tmux.conf
[ -f ~/.nanorc ] || ln -s ${CURRENT}/dotfiles/nanorc ~/.nanorc
[ -f ~/.ctags ] || ln -s ${CURRENT}/dotfiles/ctags ~/.ctags
[ -f ~/.ssh/load_keys ] || cp ${CURRENT}/templates/load_keys ~/.ssh/load_keys
if [ -d ~/.vim/bundle/vimproc ]; then
cd ~/.vim/bundle/vimproc && make
fi
git submodule init .
git submodule update