diff options
author | Marc Cornellà <marc.cornella@live.com> | 2018-05-26 19:02:03 +0200 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2018-05-26 19:02:03 +0200 |
commit | c09783c2554e505cc04ef0fc7465341475050947 (patch) | |
tree | 99ff72f2323968181a978d37e47024d2e17db115 /plugins/shrink-path | |
parent | 5421650c812c8fa558904b01b2f572221a98a073 (diff) | |
download | zsh-c09783c2554e505cc04ef0fc7465341475050947.tar.gz zsh-c09783c2554e505cc04ef0fc7465341475050947.tar.bz2 zsh-c09783c2554e505cc04ef0fc7465341475050947.zip |
Revert "unset chpwd_functions before running cd ... (#6830)"
This reverts commit 3dab7e46e8815838c8099040e11a7ae9a30ba03d.
Diffstat (limited to 'plugins/shrink-path')
-rw-r--r-- | plugins/shrink-path/shrink-path.plugin.zsh | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/plugins/shrink-path/shrink-path.plugin.zsh b/plugins/shrink-path/shrink-path.plugin.zsh index 6dd6a930f..f111962a5 100644 --- a/plugins/shrink-path/shrink-path.plugin.zsh +++ b/plugins/shrink-path/shrink-path.plugin.zsh @@ -94,11 +94,6 @@ shrink_path () { (( tilde )) && dir=${dir/$HOME/\~} tree=(${(s:/:)dir}) ( - # unset chpwd_functions since we'll be calling `cd` and don't - # want any side-effects (eg., if the user was using auto-ls) - chpwd_functions=() - # unset chpwd since even if chpwd_functions is (), zsh will - # attempt to execute chpwd unfunction chpwd 2> /dev/null if [[ $tree[1] == \~* ]] { cd ${~tree[1]} |