Updated selfupdate function to include custom oh-my-zsh plugins

whole-command-tab-completion
bretello 2017-07-17 01:59:38 +02:00
parent c1d1b31778
commit 6988e525eb
1 changed files with 11 additions and 0 deletions

View File

@ -4,7 +4,18 @@
## Selfupdate
function dotfiles_selfupdate
{
# Pull dotfiles
(cd $DOTFILES; git pull)
WD=$PWD
# Update all git repos in $ZSH/custom/plugins
cd $ZSH/custom/plugins
for folder in $(ls); do
if [[ -f "$folder/.git" ]]; then
(cd $folder; git pull)
fi
done
# go back to previous working directory
cd $WD
}
## get cheat sheets for commands from cheat.sh. Usage: cheat commandname