summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.zshrc8
1 files changed, 6 insertions, 2 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc
index 0c9a3d6..4120382 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -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