HISTFILE
isn't set in my .zshrc
file.
To which file is zsh history saved by default?
Or, is the history just being stored in memory?
HISTFILE
isn't set in my .zshrc
file.
To which file is zsh history saved by default?
Or, is the history just being stored in memory?
Zsh has no built-in default value for HISTFILE. The zsh distribution comes with a setup wizard for new users which has the value ~/.zsh_history built in...
More by Gilles on Command history in Zsh - Unix SE
For me it was ~/.zsh_history
You can also check with echo $HISTFILE
.histfile
for me :-( I'm on Ubuntu, and no, I didn't set $HISTFILE
. –
Hives © 2022 - 2025 — McMap. All rights reserved.
echo $HISTFILE
– Exeunt