From a1e6763a311b6b49fc68ed46a9fdb0328431889e Mon Sep 17 00:00:00 2001 From: pika Date: Sat, 22 Mar 2025 03:09:42 +0100 Subject: [PATCH] . --- .zshrc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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"