.profile: Init submodules with dotupdate
This commit is contained in:
parent
3771274cc1
commit
288a8bff17
2
.profile
2
.profile
@ -54,6 +54,8 @@ if [ -d "$HOME/.dotfiles" ]; then
|
|||||||
alias dot="$dotcmd"
|
alias dot="$dotcmd"
|
||||||
alias dotupdate="\
|
alias dotupdate="\
|
||||||
printf 'Updating submodules...\n'; \
|
printf 'Updating submodules...\n'; \
|
||||||
|
$dotcmd submodule update --init; \
|
||||||
|
printf 'Checking out masters...\n'; \
|
||||||
$dotcmd submodule -q foreach --recursive 'git checkout -q master && git pull' && \
|
$dotcmd submodule -q foreach --recursive 'git checkout -q master && git pull' && \
|
||||||
$dotcmd status"
|
$dotcmd status"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user