Variable: tramp-remote-process-environment
tramp-remote-process-environment is a customizable variable defined in
tramp.el.gz.
Value
("ENV=''" "TMOUT=0" "LC_CTYPE=''" "CDPATH=" "HISTORY=" "MAIL="
"MAILCHECK=" "MAILPATH=" "PAGER=cat" "autocorrect=" "correct=")
Documentation
List of environment variables to be set on the remote host.
Each element should be a string of the form ENVVARNAME=VALUE. An entry ENVVARNAME= disables the corresponding environment variable, which might have been set in the init files like ~/.profile.
Special handling is applied to some environment variables, which should not be set here:
The PATH environment variable should be set via tramp-remote-path.
The TERM environment variable should be set via tramp-terminal-type.
The INSIDE_EMACS environment variable will automatically be set based on the Tramp and Emacs versions, and should not be set here.
This variable was added, or its default value changed, in Emacs 26.1.
Probably introduced at or before Emacs version 23.1.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
(defcustom tramp-remote-process-environment
'("ENV=''" "TMOUT=0" "LC_CTYPE=''"
"CDPATH=" "HISTORY=" "MAIL=" "MAILCHECK=" "MAILPATH=" "PAGER=cat"
"autocorrect=" "correct=")
"List of environment variables to be set on the remote host.
Each element should be a string of the form ENVVARNAME=VALUE. An
entry ENVVARNAME= disables the corresponding environment variable,
which might have been set in the init files like ~/.profile.
Special handling is applied to some environment variables,
which should not be set here:
The PATH environment variable should be set via `tramp-remote-path'.
The TERM environment variable should be set via `tramp-terminal-type'.
The INSIDE_EMACS environment variable will automatically be set
based on the Tramp and Emacs versions, and should not be set here."
:version "26.1"
:type '(repeat string)
:link '(info-link :tag "Tramp manual" "(tramp) Remote processes"))