1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-16 19:00:07 +00:00
ohmyzsh/plugins/dirpersist
Jacob Tomaw 1ba0af650a Use safer append to hook function arrays (#8406)
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>
2019-11-19 18:47:12 +01:00
..
dirpersist.plugin.zsh Use safer append to hook function arrays (#8406) 2019-11-19 18:47:12 +01:00
README.md Added README file to the dirpersist plugin (#7274) 2018-10-14 09:39:14 -07:00

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)