diff options
-rw-r--r-- | zsh/.zshrc | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -106,16 +106,20 @@ case `hostname` in ;; esac -psvar[1]="~" function chpwd { if [[ -e $ZDIR/functions ]] { source ~/.zsh/functions/rtab.zsh - psvar[1]=$(rtab) + if [[ $(pwd) == $HOME ]]; then + psvar[1]=$(print -P %~) + else + psvar[1]=$(rtab) + fi } else { psvar[1]=$(print -P %~) } } +chpwd zstyle ':prompt:rtab' fish yes zstyle ':prompt:rtab' nameddirs yes |