summaryrefslogtreecommitdiff
path: root/etc/functions
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-08-20 23:02:00 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-08-20 23:02:00 +0200
commitf8e657d8d9a386872b85e226c7c33c0b8fe5f07c (patch)
tree3096d7ef23227f9f8535456e78f42c91770bb41b /etc/functions
parentb0fc1c80bc8d5f94032d6b8827964cfc9bb7e152 (diff)
rtab: Don't substitute a wrong ~ in certain cases
If the current directory is .../$HOME, rtab used to substitute ...~ for it
Diffstat (limited to 'etc/functions')
-rw-r--r--etc/functions/rtab2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/functions/rtab b/etc/functions/rtab
index f1465d8..656859f 100644
--- a/etc/functions/rtab
+++ b/etc/functions/rtab
@@ -71,7 +71,7 @@ if (( named )) {
[[ $dir == ${nameddirs[$part]}(/*|) ]] && dir=${dir/${nameddirs[$part]}/\~$part}
}
}
-(( tilde )) && dir=${dir/$HOME/\~}
+(( tilde )) && dir=${dir/#$HOME/\~}
tree=(${(s:/:)dir})
(
unfunction chpwd 2> /dev/null