Fetches remote to check for updates
This commit is contained in:
parent
a7c9c9fcaa
commit
4b7e2b8123
1 changed files with 1 additions and 0 deletions
1
zshrc
1
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
|
||||
|
|
Loading…
Reference in a new issue