.profile: Update dotupdate again
I'm figuring out git submodule foreach, slowly but surely
This commit is contained in:
parent
0d388e6d1b
commit
271a1c8b80
5
.profile
5
.profile
@ -53,9 +53,8 @@ if [ -d "$HOME/.dotfiles" ]; then
|
|||||||
dotcmd='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
|
dotcmd='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
|
||||||
alias dot="$dotcmd"
|
alias dot="$dotcmd"
|
||||||
alias dotupdate="\
|
alias dotupdate="\
|
||||||
$dotcmd submodule -q foreach git checkout master && \
|
printf 'Updating submodules...\n'; \
|
||||||
$dotcmd submodule -q foreach git pull && \
|
$dotcmd submodule -q foreach --recursive 'git checkout -q master && git pull' && \
|
||||||
$dotcmd pull && \
|
|
||||||
$dotcmd status"
|
$dotcmd status"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user