diff --git a/.zshrc b/.zshrc index d09568e..a6efb59 100644 --- a/.zshrc +++ b/.zshrc @@ -1,3 +1,4 @@ +# # ─< Check if the given command exists silently >───────────────────────────────────────── command_exists() { command -v "$@" >/dev/null 2>&1 @@ -375,7 +376,7 @@ __alias__() { echo "${CYAN}-- pulled down submodules recursively${NC}" gUpdateModules() { - if git diff --quiet .; then + if ! git diff --exit-code .; then echo "${YELLOW}Staging changes...${NC}" git add . || echo "GIT ADD MISSFUNCTION" sleep 0.3