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:
parent
c1d1b31778
commit
6988e525eb
11
functions.sh
11
functions.sh
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user