diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-08-20 23:02:00 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-08-20 23:02:00 +0200 |
commit | f8e657d8d9a386872b85e226c7c33c0b8fe5f07c (patch) | |
tree | 3096d7ef23227f9f8535456e78f42c91770bb41b | |
parent | b0fc1c80bc8d5f94032d6b8827964cfc9bb7e152 (diff) |
rtab: Don't substitute a wrong ~ in certain cases
If the current directory is .../$HOME, rtab used to substitute ...~ for it
-rw-r--r-- | etc/functions/rtab | 2 |
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 |