summaryrefslogtreecommitdiff
path: root/config/essentials
diff options
context:
space:
mode:
Diffstat (limited to 'config/essentials')
-rw-r--r--config/essentials/zsh/functions.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/essentials/zsh/functions.zsh b/config/essentials/zsh/functions.zsh
index fefc125..1dc31b0 100644
--- a/config/essentials/zsh/functions.zsh
+++ b/config/essentials/zsh/functions.zsh
@@ -89,12 +89,12 @@ sgd () {
d="$PWD"
for dir in ${1:-$HOME/src/*}
do
- cd $dir
+ cd $dir
+ git fetch > /dev/null 2>&1
if [ "$(git status --short 2>/dev/null | grep -v "??" | head -1)" ]
then
# There are changes, and this is a git repo
echo "$PWD \e[1;31m*changes\e[0m"
- git fetch > /dev/null 2>&1
fi
test "$(parse_git_remote)" &&
echo "$PWD \e[0;32m*push/pull\e[0m"