diff options
author | Patrick Simianer <p@simianer.de> | 2016-04-14 18:17:12 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2016-04-14 18:17:12 +0200 |
commit | 37adb44253bc6645549466d68f3119554da0c98c (patch) | |
tree | 069038d022688629d30abeb889eee4f66b792091 | |
parent | d7eb92fee74bc6ac77923196ced7e7fa5c86586f (diff) |
zsh: fix
-rw-r--r-- | zsh/.zshrc | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -106,11 +106,15 @@ case `hostname` in ;; esac -source ~/.zsh/functions/rtab.zsh psvar[1]="~" function chpwd { - psvar[1]=$(rtab) + if [[ -e $ZDIR/functions ]] { + source ~/.zsh/functions/rtab.zsh + psvar[1]=$(rtab) + } else { + psvar[1]=$(print -P %~) + } } zstyle ':prompt:rtab' fish yes zstyle ':prompt:rtab' nameddirs yes |