From a202ee6017621e5716588decf4a371f79371af80 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 12 Oct 2008 20:26:26 +0200 Subject: rtab function: Don't return empty string when in / --- etc/functions/rtab | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/functions/rtab b/etc/functions/rtab index bb7d225..b543493 100644 --- a/etc/functions/rtab +++ b/etc/functions/rtab @@ -70,5 +70,5 @@ tree=(${(s:/:)dir}) cd $dir shift tree } - echo $result + echo ${result:-/} ) -- cgit v1.2.3