summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zshrc9
1 files changed, 9 insertions, 0 deletions
diff --git a/zshrc b/zshrc
index c5eca53..991b5cd 100644
--- a/zshrc
+++ b/zshrc
@@ -11,6 +11,15 @@ ZDOTDIR=$HOME/.cache/zsh
function zshPlug() {
local install=$HOME/.zshplug
+ if [[ $1 == "update" ]]; then
+ for dir in $install/**/.git; do
+ local repo=$(dirname $dir)
+ echo "=> Updating $repo"
+ git -C $repo pull
+ done
+ return
+ fi
+
# Positinal:
# $1: Github repository.
# Arguments: