summaryrefslogtreecommitdiff
path: root/config/essentials
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-04-18 21:01:21 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-04-18 21:01:21 +0200
commit7b302f3da11dfccf54ced9c98a84ed86f0b45e85 (patch)
tree99c7266d56f455b345e0477d901df2d9f1f03a94 /config/essentials
parentc0e2c0dd60655fbdf5b3a38b797901bb7c362529 (diff)
always fetch on sgd
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"