try: fixing stuff

This commit is contained in:
piecka 2025-03-25 09:48:58 +01:00
parent 5c34ee9f23
commit 9d46dda2f4

10
.zshrc
View file

@ -354,6 +354,10 @@ __alias__() {
alias gcm="git commit -m"
alias gpu="git push --recurse-submodule=on-demand"
gsu() {
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")
@ -370,14 +374,10 @@ __alias__() {
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}"
git add .
git add . || echo "GIT ADD MISSFUNCTION"
sleep 0.3
if git commit -m " update: submodules"; then
echo "${CYAN}Changes committed successfully.${NC}"