projects
/
grml-etc-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
improve chpwd handling for builtin dirs command
[grml-etc-core.git]
/
etc
/
zsh
/
zshrc
diff --git
a/etc/zsh/zshrc
b/etc/zsh/zshrc
index
baa5890
..
5466b63
100644
(file)
--- a/
etc/zsh/zshrc
+++ b/
etc/zsh/zshrc
@@
-379,10
+379,8
@@
fi
# "cd -" won't work after login by just setting $OLDPWD, so
cd $dirstack[0] && cd $OLDPWD
fi
# "cd -" won't work after login by just setting $OLDPWD, so
cd $dirstack[0] && cd $OLDPWD
fi
- # notice: we have to make sure 'dirs' is not a function/alias, otherwise
- # zsh might hang of course
chpwd() {
chpwd() {
-
alias dirs &>/dev/null || functions dirs &>/dev/null ||
dirs -pl >! ~/.zdirs
+
builtin
dirs -pl >! ~/.zdirs
}
# }}}
}
# }}}