.profile: Update dotupdate alias

This commit is contained in:
Salt 2018-10-10 16:31:54 -05:00
parent 8bccf82e72
commit 0d388e6d1b

View File

@ -52,7 +52,11 @@ fi
if [ -d "$HOME/.dotfiles" ]; then
dotcmd='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
alias dot="$dotcmd"
alias dotupdate="$dotcmd submodule update --recursive --remote --rebase && $dotcmd pull && $dotcmd commit -am \"Submodules: Update\""
alias dotupdate="\
$dotcmd submodule -q foreach git checkout master && \
$dotcmd submodule -q foreach git pull && \
$dotcmd pull && \
$dotcmd status"
fi
# Aliases for common utilities