Add 'dots fetch' to quickly retrieve updates for everything
This commit is contained in:
parent
de19a757b9
commit
e098adf56f
1 changed files with 11 additions and 0 deletions
|
@ -65,6 +65,16 @@ process-stow-no-folding() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fetch() {
|
||||||
|
local -a packages
|
||||||
|
packages=($argv)
|
||||||
|
(( $#packages == 0 )) && packages=( $DOTFILES/*(N:t) )
|
||||||
|
for p in $packages; do
|
||||||
|
cd $DOTFILES/$p
|
||||||
|
git fetch -p
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
status() {
|
status() {
|
||||||
local -a packages
|
local -a packages
|
||||||
packages=($argv)
|
packages=($argv)
|
||||||
|
@ -120,6 +130,7 @@ fi
|
||||||
case $comm in
|
case $comm in
|
||||||
bootstrap) bootstrap ;;
|
bootstrap) bootstrap ;;
|
||||||
clone) clone ${argv[2,-1]} ;;
|
clone) clone ${argv[2,-1]} ;;
|
||||||
|
fetch) fetch ${argv[2,-1]} ;;
|
||||||
link) link ${argv[2,-1]} ;;
|
link) link ${argv[2,-1]} ;;
|
||||||
st|status) status ${argv[2,-1]} ;;
|
st|status) status ${argv[2,-1]} ;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue