1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-12-03 16:21:32 +01:00

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

This commit is contained in:
bretello 2017-07-17 01:59:38 +02:00
parent c1d1b31778
commit 6988e525eb

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