Added o flag to only do vim bundle updates

This commit is contained in:
Austen Adler 2014-04-24 23:01:50 -04:00
parent f752336ded
commit b506bcb7ee

23
sync.sh
View File

@ -1,13 +1,4 @@
trash ~/.tmux.conf ~/.gitconfig ~/.vimrc ~/.vimperatorrc ~/.gitignore_global ~/.bashrc ~/.bash_aliases ~/.bash_functions while getopts :bo option
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
while getopts :b option
do do
case "$option" in case "$option" in
b) b)
@ -18,11 +9,23 @@ do
fi fi
vim +BundleInstall +qa vim +BundleInstall +qa
;; ;;
o)
exit 0
;;
*) *)
echo "Flag not found" echo "Flag not found"
;; ;;
esac esac
done done
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
if [ -f ~/.vim/plugin/ ] if [ -f ~/.vim/plugin/ ]
then then
echo "Installing plugin folder in ~/.vim/" echo "Installing plugin folder in ~/.vim/"