mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-02-21 19:06:24 +08:00

Use add-zsh-hook to add functions to hooks. That way they won't be added again when doing `source ~/.zshrc` multiple times. Co-authored-by: Marc Cornellà <marc.cornella@live.com>
Dirpersist plugin
This plugin keeps a running tally of the previous 20 unique directories in the $HOME/.zdirs file. When you cd to a new directory, it is prepended to the beginning of the file.
To use it, add dirpersist
to the plugins array in your zshrc file:
plugins=(... dirpersist)