summaryrefslogtreecommitdiff
path: root/etc/functions
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-09-08 18:37:53 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-09-08 18:37:53 +0200
commit77a4fecf42bff713021b6f920728710a2ab6d89a (patch)
treebaa73844b2c1610da467f7bf491e79179c5ae17d /etc/functions
parent1496f1b5aac6afcc3d472c24dbc958e61b6200f1 (diff)
rtab: Honor paths starting with ~/
Diffstat (limited to 'etc/functions')
-rw-r--r--etc/functions/rtab8
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=''