Set correct working dir after auto update

This commit is contained in:
lhark 2016-03-30 15:30:10 +00:00
parent 6544629f18
commit 49ec5447e2

2
zshrc
View file

@ -37,7 +37,7 @@ 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 && source $HOME/.zshrc
git pull --rebase --stat origin master && source $HOME/.zshrc && cd $CUR_PWD
return
fi
fi