diff --git a/zshrc b/zshrc index 3873c5e..e437a7a 100644 --- a/zshrc +++ b/zshrc @@ -13,9 +13,13 @@ export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin:~/bin +# Get rc dir path +RC_PATH=$(dirname "$(readlink -f $0)") + # Mise à jour automatique à partir du repo distant -cd $HOME/rc +CUR_PWD=`pwd` +cd $RC_PATH # In case the network is down, don't lock the terminal timeout 3 git fetch > /dev/null 2>&1 @@ -37,7 +41,7 @@ elif $(echo "$git_st" | grep '^## .*behind' &> /dev/null); then fi fi -cd $OLDPWD +cd $CUR_PWD # Configuration for virtualenv @@ -465,4 +469,4 @@ man() { # fi # ZSH syntax highlighting : /!\ keep at the bottom ! -source zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +source ${RC_PATH}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh