summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zsh/.zshrc8
1 files changed, 6 insertions, 2 deletions
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