Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the default zsh history file?

Tags:

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?

like image 908
ma11hew28 Avatar asked Feb 03 '16 23:02

ma11hew28


People also ask

How long is ZSH history?

Increasing the History File Size Unfortunately, zsh's default history file size is limited to 10000 lines by default and will truncate the history to this length by deduplicating entries and removing old data. Adding the following lines to . zshrc will remove the limits and deduplication of the history file.

Where is Linux history stored?

The background. In Bash, your command history is stored in a file ( . bash_history ) in your home directory.

How do you delete history on ZSH?

In my terminal, ZSH, there's a file called ~/. zsh_history , and a similar one for Bash. To remove the command, open that file and remove the entry from the list. Open a new terminal window, and the bad command is gone.

Where to find .zshrc file Linux?

zshrc file located in your home directory. It's a hidden file, so you might not see it in your home directory, but you can view it by running open ~/. zshrc from the terminal.


Video Answer


1 Answers

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

like image 157
lolesque Avatar answered Sep 19 '22 13:09

lolesque