summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/vundle/vundle.plugin.zsh6
-rw-r--r--tools/upgrade.sh3
2 files changed, 7 insertions, 2 deletions
diff --git a/plugins/vundle/vundle.plugin.zsh b/plugins/vundle/vundle.plugin.zsh
index 005a58476..936c8d7d2 100644
--- a/plugins/vundle/vundle.plugin.zsh
+++ b/plugins/vundle/vundle.plugin.zsh
@@ -16,8 +16,12 @@ function vundle () {
vim -c "execute \"BundleInstall\" | q | q"
}
-
function vundle-update () {
vundle-init
vim -c "execute \"BundleInstall!\" | q | q"
}
+
+function vundle-clean () {
+ vundle-init
+ vim -c "execute \"BundleClean!\" | q | q"
+}
diff --git a/tools/upgrade.sh b/tools/upgrade.sh
index b2a1c06c4..cd689ba1f 100644
--- a/tools/upgrade.sh
+++ b/tools/upgrade.sh
@@ -1,4 +1,5 @@
current_path=`pwd`
+current_path=${current_path/ /\\ }
printf '\033[0;34m%s\033[0m\n' "Upgrading Oh My Zsh"
cd $ZSH
@@ -16,4 +17,4 @@ else
printf '\033[0;31m%s\033[0m\n' 'There was an error updating. Try again later?'
fi
-cd "$current_path" \ No newline at end of file
+cd "$current_path"