summaryrefslogtreecommitdiff
path: root/etc/functions
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-01-29 15:20:36 +0100
committerDaniel Friesel <derf@finalrewind.org>2011-01-29 15:20:36 +0100
commit7f7dcfc232e5f8e02008de55d00b9b4faa5f17f5 (patch)
tree0cc59c95f61f5d1483be492ddc7cc5d945706edb /etc/functions
parentbcbeb635ed517e1182c336ece3cd5ac1f84508a8 (diff)
rtab: Use cd -q (thx mxey)
Diffstat (limited to 'etc/functions')
-rw-r--r--etc/functions/rtab8
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:-/}