From 4b7e2b812303f29b8348eda48d30d00201de9887 Mon Sep 17 00:00:00 2001 From: lhark Date: Sun, 7 Jun 2015 00:45:59 +0200 Subject: [PATCH] Fetches remote to check for updates --- zshrc | 1 + 1 file changed, 1 insertion(+) diff --git a/zshrc b/zshrc index 71cdec6..f3fbd3a 100644 --- a/zshrc +++ b/zshrc @@ -14,6 +14,7 @@ export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin:~/bin # Mise à jour automatique à partir du repo distant cd /home/$USER/rc +git fetch if $(git status --porcelain -b 2> /dev/null | grep '^## .*behind' &> /dev/null); then echo "Type Y to update .zshrc: \c" read line