Many times, our history file may not be in ~/.bash_history or ~/.zsh_history. In this case, we need to read HISTFILE to obtain this value, and HISTFILE may not be an environment variable, so we need to use a new process to obtain the location of this file.
Many times, our history file may not be in
~/.bash_history
or~/.zsh_history
. In this case, we need to readHISTFILE
to obtain this value, andHISTFILE
may not be an environment variable, so we need to use a new process to obtain the location of this file.