1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-23 16:28:14 +08:00
ohmyzsh/plugins/dircycle
Marc Cornellà ac3b345365
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.
2018-10-02 21:31:26 +02:00
..
dircycle.plugin.zsh dircycle: trigger appropriate hooks after directory change (#7161) 2018-10-02 21:31:26 +02:00