summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/functions/rtab2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/functions/rtab b/etc/functions/rtab
index f1465d8..656859f 100644
--- a/etc/functions/rtab
+++ b/etc/functions/rtab
@@ -71,7 +71,7 @@ if (( named )) {
[[ $dir == ${nameddirs[$part]}(/*|) ]] && dir=${dir/${nameddirs[$part]}/\~$part}
}
}
-(( tilde )) && dir=${dir/$HOME/\~}
+(( tilde )) && dir=${dir/#$HOME/\~}
tree=(${(s:/:)dir})
(
unfunction chpwd 2> /dev/null