Variable: tramp-sh-extra-args
tramp-sh-extra-args is a customizable variable defined in
tramp-sh.el.gz.
Value
(("\\(?:\\`\\|/\\)bash\\'" . "-noediting -norc -noprofile")
("\\(?:\\`\\|/\\)zsh\\'" . "-f +Z -V"))
Documentation
Alist specifying extra arguments to pass to the remote shell.
Entries are (REGEXP . ARGS) where REGEXP is a regular expression
matching the shell file name and ARGS is a string specifying the
arguments. These arguments shall disable line editing, see
tramp-open-shell.
This variable is only used when Tramp needs to start up another shell for tilde expansion. The extra arguments should typically prevent the shell from reading its init file.
This variable was added, or its default value changed, in Emacs 30.1.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp-sh.el.gz
(defcustom tramp-sh-extra-args
`((,(rx (| bos "/") "bash" eos) . "-noediting -norc -noprofile")
(,(rx (| bos "/") "zsh" eos) . "-f +Z -V"))
"Alist specifying extra arguments to pass to the remote shell.
Entries are (REGEXP . ARGS) where REGEXP is a regular expression
matching the shell file name and ARGS is a string specifying the
arguments. These arguments shall disable line editing, see
`tramp-open-shell'.
This variable is only used when Tramp needs to start up another shell
for tilde expansion. The extra arguments should typically prevent the
shell from reading its init file."
:group 'tramp
:version "30.1"
:type '(alist :key-type regexp :value-type string)
:link '(info-link :tag "Tramp manual" "(tramp) Remote shell setup"))