From b149b2d7332f78e0e6e3486824656d1c110c19d3 Mon Sep 17 00:00:00 2001 From: piecka Date: Tue, 25 Mar 2025 09:43:32 +0100 Subject: [PATCH] fix: maybe finally? --- .zshrc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.zshrc b/.zshrc index 9a07284..e2fe267 100644 --- a/.zshrc +++ b/.zshrc @@ -354,14 +354,6 @@ __alias__() { alias gcm="git commit -m" alias gpu="git push --recurse-submodule=on-demand" gsu() { - echo "${YELLOW}${BOLD}| git submodule foreach git pull --recurse-submodule |${NC}" - git submodule foreach git pull --recurse-submodule && - echo "${CYAN}-- pulled down submodules recursively${NC}" - - echo "${YELLOW}| git submodule update --init --recursive |${NC}" - git submodule update --init --recursive && - echo "${CYAN}-- updated submodules recursively${NC}" - echo "${YELLOW}-- Checking submodule branches... --${NC}" git submodule foreach ' branch=$(git symbolic-ref --short HEAD 2>/dev/null || echo "detached") @@ -374,6 +366,14 @@ __alias__() { fi ' + echo "${YELLOW}${BOLD}| git submodule foreach git pull --recurse-submodule |${NC}" + git submodule foreach git pull --recurse-submodule && + echo "${CYAN}-- pulled down submodules recursively${NC}" + + echo "${YELLOW}| git submodule update --init --recursive |${NC}" + git submodule update --init --recursive && + echo "${CYAN}-- updated submodules recursively${NC}" + gUpdateModules() { if git diff --quiet .; then echo "${YELLOW}Staging changes...${NC}"