Set correct working dir after auto update
This commit is contained in:
parent
6544629f18
commit
49ec5447e2
1 changed files with 1 additions and 1 deletions
2
zshrc
2
zshrc
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue