Fix path and linking issues

This commit is contained in:
lhark 2015-11-08 19:09:05 +01:00
parent 2819a9de56
commit a094247c9a

10
zshrc
View file

@ -13,9 +13,13 @@
export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin:~/bin 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 # 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 # In case the network is down, don't lock the terminal
timeout 3 git fetch > /dev/null 2>&1 timeout 3 git fetch > /dev/null 2>&1
@ -37,7 +41,7 @@ elif $(echo "$git_st" | grep '^## .*behind' &> /dev/null); then
fi fi
fi fi
cd $OLDPWD cd $CUR_PWD
# Configuration for virtualenv # Configuration for virtualenv
@ -465,4 +469,4 @@ man() {
# fi # fi
# ZSH syntax highlighting : /!\ keep at the bottom ! # 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