diff options
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/functions/rtab | 2 |
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/\~} |