diff --git a/vim/rebuild_plugins b/bin/vim/rebuild_plugins similarity index 100% rename from vim/rebuild_plugins rename to bin/vim/rebuild_plugins diff --git a/config/colorschemes/vim/update_colorschemes b/bin/vim/update_colorschemes similarity index 58% rename from config/colorschemes/vim/update_colorschemes rename to bin/vim/update_colorschemes index d48efad..07e162f 100755 --- a/config/colorschemes/vim/update_colorschemes +++ b/bin/vim/update_colorschemes @@ -2,5 +2,5 @@ [ ! -d "$HOME/.vim" ] && mkdir "$HOME/.vim" [ ! -d "$HOME/.vim/colors" ] && mkdir "$HOME/.vim/colors" -for file in $(find ./ -name \*.vim); do cp $file ~/.vim/colors/; done +for file in $(find "$HOME/.wryn/config/colorschemes/vim" -name \*.vim); do cp $file ~/.vim/colors/; done echo "vim colorschemes updated" diff --git a/setup b/setup index 762e52c..c799229 100755 --- a/setup +++ b/setup @@ -45,9 +45,7 @@ function VIM__SETUP_ENVIRONMENT_VARIABLES() { } function VIM__UPDATE_COLORSCHEMES() { - pushd $HOME/.wryn/config/colorschemes/vim >/dev/null - ./update_colorschemes - popd >/dev/null + $HOME/.wryn/bin/vim/update_colorschemes } function VIM__INSTALL_VUNDLE_PLUGINS() { @@ -62,7 +60,7 @@ function VIM__INSTALL_VUNDLE_PLUGINS() { vim +PluginInstall +qall; echo "building plugins" - $HOME/.wryn/vim/rebuild_plugins; + $HOME/.wryn/bin/vim/rebuild_plugins; } function VIM__SETUP() { @@ -187,8 +185,8 @@ function CLEAN_BACKUP() { case $yn in [Yy]* ) echo 'cleaning backup files'; - for file in $(find "$HOME/.config/" -name \*.bak 2>/dev/null); do rm $file; done - for file in $(find "$HOME" -name .\*.bak 2>/dev/null); do rm $file; done + for file in $(find "$HOME/.config/" -name \*.bak 2>/dev/null); do rm $file && echo cleaned $file; done + for file in $(find "$HOME" -name .\*.bak 2>/dev/null); do rm $file && echo cleaned $file; done ;; * ) echo 'skipping cleanup';; esac