summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2016-04-14 18:17:12 +0200
committerPatrick Simianer <p@simianer.de>2016-04-14 18:17:12 +0200
commit37adb44253bc6645549466d68f3119554da0c98c (patch)
tree069038d022688629d30abeb889eee4f66b792091
parentd7eb92fee74bc6ac77923196ced7e7fa5c86586f (diff)
zsh: fix
-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