Fix path and linking issues
This commit is contained in:
parent
2819a9de56
commit
a094247c9a
1 changed files with 7 additions and 3 deletions
10
zshrc
10
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
|
||||
|
|
Loading…
Reference in a new issue