From f8e657d8d9a386872b85e226c7c33c0b8fe5f07c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 20 Aug 2009 23:02:00 +0200 Subject: rtab: Don't substitute a wrong ~ in certain cases If the current directory is .../$HOME, rtab used to substitute ...~ for it --- etc/functions/rtab | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/functions') 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 -- cgit v1.2.3