diff options
author | Marc Cornellà <marc.cornella@live.com> | 2018-10-02 21:31:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-02 21:31:26 +0200 |
commit | ac3b345365354252b7c264d5ff4fe6957c11798d (patch) | |
tree | 2c0c449989603e508037de58995b5aaf336f2dea /oh-my-zsh.sh | |
parent | a8e69686aa6c782eed3d749de5fb54758de10734 (diff) | |
download | zsh-ac3b345365354252b7c264d5ff4fe6957c11798d.tar.gz zsh-ac3b345365354252b7c264d5ff4fe6957c11798d.tar.bz2 zsh-ac3b345365354252b7c264d5ff4fe6957c11798d.zip |
dircycle: trigger appropriate hooks after directory change (#7161)
This commit triggers precmd and chpwd hook functions iff we changed directory.
This has the same behavior as zsh's hook function execution, which tries to run
the functions in the order specified and silently ignores any function that
does not exist.
See http://zsh.sourceforge.net/Doc/Release/Functions.html#Hook-Functions
Also moved duplicate nopushdminus logic to the `switch-to-dir` function.
Diffstat (limited to 'oh-my-zsh.sh')
0 files changed, 0 insertions, 0 deletions