Added o flag to only do vim bundle updates
This commit is contained in:
parent
f752336ded
commit
b506bcb7ee
23
sync.sh
23
sync.sh
@ -1,13 +1,4 @@
|
||||
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
|
||||
while getopts :b option
|
||||
while getopts :bo option
|
||||
do
|
||||
case "$option" in
|
||||
b)
|
||||
@ -18,11 +9,23 @@ do
|
||||
fi
|
||||
vim +BundleInstall +qa
|
||||
;;
|
||||
o)
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
echo "Flag not found"
|
||||
;;
|
||||
esac
|
||||
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/ ]
|
||||
then
|
||||
echo "Installing plugin folder in ~/.vim/"
|
||||
|
Loading…
Reference in New Issue
Block a user