Variable: tramp-histfile-override
tramp-histfile-override is a customizable variable defined in
tramp-sh.el.gz.
Value
"~/.tramp_history"
Documentation
When invoking a shell, override the HISTFILE with this value.
When setting to a string, it redirects the shell history to that file. Be careful when setting to "/dev/null"; this might result in undesired results when using "bash" as shell.
The value t unsets any setting of HISTFILE, and sets both HISTFILESIZE and HISTSIZE to 0. If you set this variable to nil, however, the *override* is disabled, so the history will go to the default storage location, e.g. "$HOME/.sh_history".
This variable was added, or its default value changed, in Emacs 25.2.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp-sh.el.gz
;;;###tramp-autoload
(defcustom tramp-histfile-override "~/.tramp_history"
"When invoking a shell, override the HISTFILE with this value.
When setting to a string, it redirects the shell history to that
file. Be careful when setting to \"/dev/null\"; this might
result in undesired results when using \"bash\" as shell.
The value t unsets any setting of HISTFILE, and sets both
HISTFILESIZE and HISTSIZE to 0. If you set this variable to nil,
however, the *override* is disabled, so the history will go to
the default storage location, e.g. \"$HOME/.sh_history\"."
:group 'tramp
:version "25.2"
:type '(choice (const :tag "Do not override HISTFILE" nil)
(const :tag "Unset HISTFILE" t)
(string :tag "Redirect to a file")))