summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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=''