diff options
-rw-r--r-- | etc/functions/rtab | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/functions/rtab b/etc/functions/rtab index e3a0c20..2fcbf42 100644 --- a/etc/functions/rtab +++ b/etc/functions/rtab @@ -61,10 +61,10 @@ tree=(${(s:/:)dir}) expn=(a b) part='' i=0 - until [[ (( ${#expn} == 1 )) || $dir = $expn ]] do + until [[ (( ${#expn} == 1 )) || $dir = $expn || $i -gt 99 ]] do (( i++ )) part+=$dir[$i] - expn=($(echo ${part}*)) + expn=($(echo ${part}*(/))) (( short )) && break done result+="/$part" |