When migrating from oh-my-zsh I lost my history and didn't initially understand why.
oh-my-zsh uses .zsh_history for history, see lib/history.zsh
By default, without configuration, I should be able to continue using my existing history file .zsh_history.
The prezto history modules defaults HISTFILE to .zhistory
Thanks for the feedback! Unfortunately, I don't think we will end up doing this... it doesn't make sense to support an alternative default location for the HISTFILE because we're two different frameworks. If you want to use a different HISTFILE, you can set that variable manually. We honor that variable when it is manually set.
I'd also rather optimize for usage rather than setup... and I don't want to introduce either a dynamic HISTFILE variable that changes depending on which files exist... or change the default to something other than what our users have had for many years.
Maybe a note in modules/history/README.md would help avoid surprises?
That seems reasonable. Might even be good to have a “migrating from OMZ doc”.
Added some basic documentation to modules/history/README.md. Thanks for the suggestion!
Thanks @belak !
FYI: ${ZDOTDIR:-$HOME}/.zsh_history is also the default set on macOS in /etc/zshrc
Ah, interesting, it might be worth changing then. Thanks for following up!
👍
I did a little more research and took a look at ubuntu. History saving isn't configured out of the box, but the recommendation is ~/.zsh_history too, see /etc/zsh/newuser.zshrc.recommended
Now that I recall, this did trip me when I first installed prezto. Probably, because I was migrating from OMZ.
Most helpful comment
Thanks for the feedback! Unfortunately, I don't think we will end up doing this... it doesn't make sense to support an alternative default location for the HISTFILE because we're two different frameworks. If you want to use a different HISTFILE, you can set that variable manually. We honor that variable when it is manually set.
I'd also rather optimize for usage rather than setup... and I don't want to introduce either a dynamic HISTFILE variable that changes depending on which files exist... or change the default to something other than what our users have had for many years.