2014-04-24 23:01:50 -04:00
|
|
|
while getopts :bo option
|
2014-04-19 13:25:29 -04:00
|
|
|
do
|
|
|
|
case "$option" in
|
|
|
|
b)
|
|
|
|
if [ -f ~/.vim/bundle/vundle/ ]
|
|
|
|
then
|
|
|
|
echo "Installing vundle"
|
|
|
|
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
|
|
|
|
fi
|
|
|
|
vim +BundleInstall +qa
|
|
|
|
;;
|
2014-04-24 23:01:50 -04:00
|
|
|
o)
|
|
|
|
exit 0
|
|
|
|
;;
|
2014-04-19 13:25:29 -04:00
|
|
|
*)
|
|
|
|
echo "Flag not found"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
2014-04-24 23:01:50 -04:00
|
|
|
trash ~/.tmux.conf ~/.gitconfig ~/.vimrc ~/.vimperatorrc ~/.gitignore_global ~/.bashrc ~/.bash_aliases ~/.bash_functions
|
|
|
|
ln -s ${PWD}/gitignore_global ~/.gitignore_global
|
|
|
|
ln -s ${PWD}/vimrc ~/.vimrc
|
|
|
|
ln -s ${PWD}/vimperatorrc ~/.vimperatorrc
|
|
|
|
ln -s ${PWD}/tmux.conf ~/.tmux.conf
|
|
|
|
ln -s ${PWD}/gitconfig ~/.gitconfig
|
|
|
|
ln -s ${PWD}/bashrc ~/.bashrc
|
|
|
|
ln -s ${PWD}/bash_aliases ~/.bash_aliases
|
|
|
|
ln -s ${PWD}/bash_functions ~/.bash_functions
|
2014-04-19 13:25:29 -04:00
|
|
|
if [ -f ~/.vim/plugin/ ]
|
|
|
|
then
|
|
|
|
echo "Installing plugin folder in ~/.vim/"
|
|
|
|
mkdir -p ~/.vim/plugin/
|
|
|
|
fi
|
|
|
|
if [ -f ~/.vim/plugin/backup/ ]
|
|
|
|
then
|
|
|
|
echo "Installing backup folder in ~/.vim/"
|
|
|
|
mkdir -p ~/.vim/backup/
|
|
|
|
fi
|
|
|
|
if [ -f ~/.vim/plugin/undo/ ]
|
|
|
|
then
|
|
|
|
echo "Installing undo folder in ~/.vim/"
|
|
|
|
mkdir -p ~/.vim/undo/
|
|
|
|
fi
|
|
|
|
if [ -f ~/.vim/tmp/ ]
|
|
|
|
then
|
|
|
|
echo "Installing tmp folder in ~/.vim/"
|
|
|
|
mkdir -p ~/.vim/tmp/
|
|
|
|
fi
|
|
|
|
if [ ! -f ~/.vim/plugin/sessionman.vim ]
|
|
|
|
then
|
|
|
|
echo "Installing sessionman in ~/.vim/plugin/"
|
|
|
|
wget -O ~/.vim/plugin/sessionman.vim http://www.vim.org/scripts/download_script.php?src_id=15599
|
|
|
|
fi
|