From 49ec5447e23a0fee2e9ee1cace09948bbe1a0fe6 Mon Sep 17 00:00:00 2001 From: lhark Date: Wed, 30 Mar 2016 15:30:10 +0000 Subject: [PATCH] Set correct working dir after auto update --- zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 5486ed3..6602483 100644 --- a/zshrc +++ b/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