history: Update doc to accommodate recent macOS

In recent versions of macOS (Catalina and above), `HISTFILE` is set
via system `/etc/zshrc`.
This commit is contained in:
Indrajit Raychaudhuri 2021-04-26 17:57:12 -05:00 committed by Indrajit Raychaudhuri
parent 428632ac07
commit ce937020ce
1 changed files with 7 additions and 5 deletions

View File

@ -3,9 +3,10 @@ History
Sets [history][1] options and defines history aliases.
**Note:** If you are migrating from oh-my-zsh and want to keep your history, you
will either need to set `HISTFILE` manually to `$HOME/.zsh_history` or rename
`~/.zsh_history` to `~/.zhistory`.
**Note:** If you are migrating from [Oh My Zsh][2] and are not on a recent
version of macOS and want to keep your history, you will either need to set
`HISTFILE` manually to `$HOME/.zsh_history` or rename `~/.zsh_history` to
`~/.zhistory`.
Options
-------
@ -39,10 +40,11 @@ Aliases
Authors
-------
*The authors of this module should be contacted via the [issue tracker][2].*
*The authors of this module should be contacted via the [issue tracker][3].*
- [Robby Russell](https://github.com/robbyrussell)
- [Sorin Ionescu](https://github.com/sorin-ionescu)
[1]: http://zsh.sourceforge.net/Guide/zshguide02.html#l16
[2]: https://github.com/sorin-ionescu/prezto/issues
[2]: https://github.com/ohmyzsh/ohmyzsh
[3]: https://github.com/sorin-ionescu/prezto/issues