From 4f9795aba5e2dd238385bb9b37bbc354339aff21 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 20 Sep 2008 17:06:02 +0200 Subject: rtab: unfunction chpwd chpwd is useless within the function --- etc/functions/rtab | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/functions/rtab b/etc/functions/rtab index 2fcbf42..360e551 100644 --- a/etc/functions/rtab +++ b/etc/functions/rtab @@ -44,6 +44,7 @@ typeset -i i (( tilde )) && dir=${dir/$HOME/\~} tree=(${(s:/:)dir}) ( + unfunction chpwd 2> /dev/null if [[ $tree[1] = '~' ]] { shift tree cd ~ -- cgit v1.2.3