From 37adb44253bc6645549466d68f3119554da0c98c Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Thu, 14 Apr 2016 18:17:12 +0200 Subject: zsh: fix --- zsh/.zshrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'zsh') diff --git a/zsh/.zshrc b/zsh/.zshrc index 13fcecd..a691bf2 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -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 -- cgit v1.2.3