diff --git a/.zshrc b/.zshrc index 07db0b1..b67d1fd 100644 --- a/.zshrc +++ b/.zshrc @@ -341,15 +341,18 @@ __alias__() { alias gcm="git commit -m" alias gpu="git push --recurse-submodule=on-demand" gsu() { - echo_info "-- pulling submodules --" git submodule foreach git pull --recurse-submodule - echo_info "-- updating submodules --" + echo_info "-- pulled submodules --" git submodule update --init --recursive + echo_info "-- updated submodules --" git diff . && git add . sleep 0.3 git commit -m " update: submodules" - git push + git push && + echo_info "push successfull" + + error_log } if command_exists lazygit; then alias lg="lazygit"