From 042334b5308dc0fde17a53dcb3b1a31d62897db0 Mon Sep 17 00:00:00 2001 From: lhark Date: Thu, 30 Jun 2016 01:57:34 +0200 Subject: [PATCH] Fix autoupdate directory change problem --- zshrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zshrc b/zshrc index e78983d..3e0a4c1 100644 --- a/zshrc +++ b/zshrc @@ -18,7 +18,7 @@ RC_PATH=$(dirname "$(readlink -f ${(%):-%x})") # Mise à jour automatique à partir du repo distant -PWD=`pwd` +CUR_DIR=`pwd` cd $RC_PATH # In case the network is down, don't lock the terminal @@ -39,13 +39,13 @@ elif $(echo "$git_st" | grep '^## .*behind' &> /dev/null); then if [ "$line" = Y ] || [ "$line" = y ]; then git pull --rebase --stat origin master $RC_PATH/install.sh - cd $PWD + cd $CUR_DIR source $HOME/.zshrc return fi fi -cd $PWD +cd $CUR_DIR # Configuration for virtualenv