summaryrefslogtreecommitdiff
path: root/etc/functions/rtab
diff options
context:
space:
mode:
Diffstat (limited to 'etc/functions/rtab')
-rw-r--r--etc/functions/rtab8
1 files changed, 7 insertions, 1 deletions
diff --git a/etc/functions/rtab b/etc/functions/rtab
index 656859f..0145237 100644
--- a/etc/functions/rtab
+++ b/etc/functions/rtab
@@ -94,7 +94,13 @@ tree=(${(s:/:)dir})
(( i++ ))
part+=$dir[$i]
expn=($(echo ${part}*(-/)))
- (( short )) && break
+ if ((short)) {
+ if [[ $dir[$i] == . ]] {
+ expn=(a b)
+ } else {
+ break
+ }
+ }
done
result+="/$part"
cd $dir