alias: changed to function gsu

This commit is contained in:
pika 2025-03-21 21:41:18 +01:00
parent 2452428ab5
commit ef0002ba01

13
.zshrc
View file

@ -337,9 +337,20 @@ __alias__() {
alias ga="gd $1 && git add"
alias gp="git pull --recurse-submodule"
alias gms='git maintenance start'
alias gsu="git submodule foreach git pull && git submodule update --init --recursive && git add . && git commit -m ' update: submodules' && echo '-- Committed changes, pushing now..' && sleep 1 && git push"
# alias gsu="git submodule foreach git pull && git submodule update --init --recursive && git add . && git commit -m ' update: submodules' && echo '-- Committed changes, pushing now..' && sleep 1 && git push"
alias gcm="git commit -m"
alias gpu="git push --recurse-submodule=on-demand"
gsu() {
git submodule foreach git pull --recurse-submodule
echo_info "-- pulled down submodules --"
git submodule update --init --recursive
echo_info "-- updates submodules --"
git diff . &&
git add .
sleep 0.3
git commit -m " update: submodules"
git push
}
if command_exists lazygit; then
alias lg="lazygit"
fi