Automatic zshrc reloading after update

This commit is contained in:
lhark 2015-12-07 18:00:33 +01:00
parent 06cddc0b87
commit 42d55f9d6c

3
zshrc
View file

@ -37,7 +37,8 @@ elif $(echo "$git_st" | grep '^## .*behind' &> /dev/null); then
echo "Type Y to update .zshrc: \c"
read line
if [ "$line" = Y ] || [ "$line" = y ]; then
git pull --rebase --stat origin master
git pull --rebase --stat origin master && source $HOME/.zshrc
exit 0
fi
fi