diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-09-08 18:37:53 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-09-08 18:37:53 +0200 |
commit | 77a4fecf42bff713021b6f920728710a2ab6d89a (patch) | |
tree | baa73844b2c1610da467f7bf491e79179c5ae17d | |
parent | 1496f1b5aac6afcc3d472c24dbc958e61b6200f1 (diff) |
rtab: Honor paths starting with ~/
-rw-r--r-- | etc/functions/rtab | 8 |
1 files changed, 7 insertions, 1 deletions
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='' |