summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-12-25 09:53:47 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-12-25 09:53:50 +0100
commit336a085ae9d2b6993c952708d4c001ea4b2b6135 (patch)
treeb8062b1b5f4a3a9dd5bdb17179af9f84f9cf4d8e
parent7858d0eeca0f54221f35c8b7a45fbbc1afcac92d (diff)
rtab: Show two chars for dot-dirs (a/./b is not helpful and even wrong)
-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