From 336a085ae9d2b6993c952708d4c001ea4b2b6135 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 25 Dec 2009 09:53:47 +0100 Subject: rtab: Show two chars for dot-dirs (a/./b is not helpful and even wrong) --- etc/functions/rtab | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3