.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'
|
dotcmd='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
|
||||||
alias dot="$dotcmd"
|
alias dot="$dotcmd"
|
||||||
alias dotupdate="\
|
alias dotupdate="\
|
||||||
printf 'Pulling...\n'; \
|
printf 'Pulling...\n'
|
||||||
$dotcmd pull
|
$dotcmd pull
|
||||||
printf 'Updating submodules...\n'; \
|
printf 'Updating submodules...\n'
|
||||||
$dotcmd submodule update --init; \
|
$dotcmd submodule update --init --recursive --remote'
|
||||||
printf 'Checking out masters...\n'; \
|
$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 submodule -q foreach --recursive 'git checkout -q master && git pull' && \
|
||||||
$dotcmd status"
|
$dotcmd status"
|
||||||
unset dotcmd
|
unset dotcmd
|
||||||
|
Loading…
Reference in New Issue
Block a user