diff --git a/.zshrc b/.zshrc index 7f5380c..2cf7f29 100644 --- a/.zshrc +++ b/.zshrc @@ -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