From a094247c9a86780bbead135dcca929a666c89a69 Mon Sep 17 00:00:00 2001 From: lhark Date: Sun, 8 Nov 2015 19:09:05 +0100 Subject: [PATCH] Fix path and linking issues --- zshrc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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