diff options
Diffstat (limited to 'zsh/.zshrc')
-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 |