Don't clobber chpwd

This commit is contained in:
xiao 2015-08-03 22:10:24 -07:00
commit 084792b829
2 changed files with 6 additions and 2 deletions

View file

@ -49,7 +49,9 @@ function push_future() {
}
# Called by zsh when directory changes
function chpwd() {
typeset -ga chpwd_functions
chpwd_functions+='chpwd_dirhistory'
function chpwd_dirhistory() {
push_past $PWD
# If DIRHISTORY_CD is not set...
if [[ -z "${DIRHISTORY_CD+x}" ]]; then