aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Rommel <mail@florommel.de>2024-03-07 00:02:58 +0100
committerGabriele Bozzola <sbozzolator@gmail.com>2024-12-17 19:31:26 -0800
commitf64729ed8b59e46ce827d28222c4087c538de562 (patch)
treef65b859b9763689b4148782f650240faded878a2
parent0b4ac71dd7bca96fc487e0afb8d359fb68d395a0 (diff)
Try running the login shell by default for "ssh" and "scp" methods
This will fall back to Tramp's shell if the login shell cannot be determined.
-rw-r--r--vterm.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/vterm.el b/vterm.el
index 2dcddbd..9bc0d16 100644
--- a/vterm.el
+++ b/vterm.el
@@ -172,7 +172,8 @@ the executable."
:type 'string
:group 'vterm)
-(defcustom vterm-tramp-shells '(("docker" "/bin/sh"))
+(defcustom vterm-tramp-shells
+ '(("ssh" login-shell) ("scp" login-shell) ("docker" "/bin/sh"))
"The shell that gets run in the vterm for tramp.
`vterm-tramp-shells' has to be a list of pairs of the format: