.profile: Separate updating and upgrading
This commit is contained in:
parent
845633c4a0
commit
eca2496b6c
14
.profile
14
.profile
@ -263,11 +263,17 @@ if [ -d "$HOME/.dotfiles" ]; then
|
||||
dotcmd='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
|
||||
alias dot="$dotcmd"
|
||||
alias dotupdate="\
|
||||
printf 'Pulling...\n'; \
|
||||
printf 'Pulling...\n'
|
||||
$dotcmd pull
|
||||
printf 'Updating submodules...\n'; \
|
||||
$dotcmd submodule update --init; \
|
||||
printf 'Checking out masters...\n'; \
|
||||
printf 'Updating submodules...\n'
|
||||
$dotcmd submodule update --init --recursive --remote'
|
||||
$dotcmd status"
|
||||
alias dotupgrade="\
|
||||
printf 'Pulling...\n'
|
||||
$dotcmd pull
|
||||
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 status"
|
||||
unset dotcmd
|
||||
|
Loading…
Reference in New Issue
Block a user