From 77a4fecf42bff713021b6f920728710a2ab6d89a Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 8 Sep 2008 18:37:53 +0200 Subject: rtab: Honor paths starting with ~/ --- etc/functions/rtab | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'etc/functions/rtab') diff --git a/etc/functions/rtab b/etc/functions/rtab index f42af6b..bf08d00 100644 --- a/etc/functions/rtab +++ b/etc/functions/rtab @@ -10,7 +10,13 @@ typeset -i i #typeset IFS='/' tree=(${(s:/:)1}) ( - cd / + if [[ $tree[1] = '~' ]] { + shift tree + cd ~ + result='~' + } else { + cd / + } for dir in $tree; { expn=(a b) part='' -- cgit v1.2.3