From 7f7dcfc232e5f8e02008de55d00b9b4faa5f17f5 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 29 Jan 2011 15:20:36 +0100 Subject: rtab: Use cd -q (thx mxey) --- etc/functions/rtab | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'etc/functions/rtab') diff --git a/etc/functions/rtab b/etc/functions/rtab index 4ba828a..6c239c2 100644 --- a/etc/functions/rtab +++ b/etc/functions/rtab @@ -74,15 +74,13 @@ if (( named )) { (( tilde )) && dir=${dir/#${HOME}/\~} tree=(${(s:/:)dir}) ( - unfunction chpwd 2> /dev/null - # Start either in the currrent named directory or in / if [[ ${tree[1]} == \~* ]] { - cd ${~tree[1]} + cd -q ${~tree[1]} result=${tree[1]} shift tree } else { - cd / + cd -q / } for dir in ${tree}; { if (( lastfull && ${#tree} == 1 )) { @@ -106,7 +104,7 @@ tree=(${(s:/:)dir}) } done result+="/${part}" - cd ${dir} + cd -q ${dir} shift tree } echo ${result:-/} -- cgit v1.2.3