Where is the default zsh history file?
Asked Answered
L

2

43

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?

Lexis answered 3/2, 2016 at 23:51 Comment(2)
Is HISTFILE set in your environment? echo $HISTFILEExeunt
It is usually ~/.zhistoryShavers
A
32

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

Alper answered 4/2, 2016 at 16:27 Comment(0)
C
6

For me it was ~/.zsh_history

You can also check with echo $HISTFILE

Curtcurtail answered 1/9, 2023 at 16:43 Comment(1)
~/.histfile for me :-( I'm on Ubuntu, and no, I didn't set $HISTFILE.Hives

© 2022 - 2025 — McMap. All rights reserved.