Fetches remote to check for updates

This commit is contained in:
lhark 2015-06-07 00:45:59 +02:00
parent a7c9c9fcaa
commit 4b7e2b8123

1
zshrc
View file

@ -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