mirror of
https://gitee.com/mirrors/ohmyzsh.git
synced 2026-10-15 17:46:45 +08:00
Don't clobber chpwd
This commit is contained in:
1 parent
3d5b3430fd
commit
084792b829
2 files changed
+6
-2
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user