Skip to content

Commit 0b4ac71

Browse files
florommelSbozzolo
authored andcommitted
Add wildcard for vterm-tramp-shells
Lets the user specify a shell for all Tramp methods.
1 parent c1a3017 commit 0b4ac71

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vterm.el

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,9 @@ the executable."
178178
`vterm-tramp-shells' has to be a list of pairs of the format:
179179
\(TRAMP-METHOD SHELL)
180180
181+
Use t as TRAMP-METHOD to specify a default shell for all methods.
182+
Specific methods always take precedence over t.
183+
181184
Set SHELL to \\='login-shell to use the user's login shell on the host.
182185
The login-shell detection currently works for POSIX-compliant remote
183186
hosts that have the getent command (regular GNU/Linux distros, *BSDs,
@@ -889,6 +892,7 @@ for, or t to get the default shell for all methods."
889892
(if (ignore-errors (file-remote-p default-directory))
890893
(with-parsed-tramp-file-name default-directory nil
891894
(or (vterm--tramp-get-shell method)
895+
(vterm--tramp-get-shell t)
892896
(with-connection-local-variables shell-file-name)
893897
vterm-shell))
894898
vterm-shell))

0 commit comments

Comments
 (0)