diff options
Diffstat (limited to 'etc/functions/rtab')
-rw-r--r-- | etc/functions/rtab | 8 |
1 files changed, 3 insertions, 5 deletions
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:-/} |