You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Commit 43214f1 introduced the allowance of a previously set HISTFILE value. As that variable is set in /etc/zshrc since Catalina, its value $HOME/.zsh_history takes precedence over the one used in .zprezto/modules/history/init.zsh since then.
As a workaround, add the following snippet to .zshrc just before Prezto is sourced:
#
# Workaround for: https://github.com/sorin-ionescu/prezto/issues/1744
#
export HISTFILE="${ZDOTDIR:-$HOME}/.zhistory" # The path to the history file.
Above snippet sets HISTFILE to $HOME/.zhistory which again is used in .zprezto/modules/history/init.zsh instead of the value previously set in /etc/zshrc.
Description
At first it seemed that
history-substring-search
andautosuggestions
were not work, but the value of$HISTFILE
was not set.zhistory
.I think this is because
/etc/zshrc
is loaded after upgrading macOS Catalina.However, since this file cannot be edited by
root
, Can't be solved.Expected behavior
Command history needs to be written to
.zhistory
.Actual behavior
In addition to
.zhistory
, a.zsh_history
file will be created.The previous history will not be read.
Steps to Reproduce
Just upgrade macOS.
Versions
2873885
zsh 5.7.1 (x86_64-apple-darwin18.2.0)
macOS Catalina (10.15) Build: 19A583
The text was updated successfully, but these errors were encountered: