diff --git a/sync.sh b/sync.sh index def830a..bd33afc 100755 --- a/sync.sh +++ b/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/"