Add 'dots fetch' to quickly retrieve updates for everything

This commit is contained in:
Danielle McLean 2016-10-22 21:44:44 +11:00
parent de19a757b9
commit e098adf56f
No known key found for this signature in database
GPG key ID: CC91589719027E94

View file

@ -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