summaryrefslogtreecommitdiff
path: root/etc/functions/rtab
diff options
context:
space:
mode:
Diffstat (limited to 'etc/functions/rtab')
-rwxr-xr-xetc/functions/rtab2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/functions/rtab b/etc/functions/rtab
index 920f881..46b315a 100755
--- a/etc/functions/rtab
+++ b/etc/functions/rtab
@@ -64,7 +64,7 @@ typeset -i i
if (( named )) {
for part in ${(k)nameddirs}; {
- [[ $dir == ${nameddirs[$part]}* ]] && dir=${dir/${nameddirs[$part]}/\~$part}
+ [[ $dir == ${nameddirs[$part]}(/*|) ]] && dir=${dir/${nameddirs[$part]}/\~$part}
}
}
(( tilde )) && dir=${dir/$HOME/\~}