Skip to content

Commit

Permalink
Add wildcard for vterm-tramp-shells
Browse files Browse the repository at this point in the history
Lets the user specify a shell for all Tramp methods.
  • Loading branch information
florommel committed Mar 6, 2024
1 parent 127925e commit d625124
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vterm.el
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ the executable."
`vterm-tramp-shells' has to be a list of pairs of the format:
\(TRAMP-METHOD SHELL)
Use \"*\" as TRAMP-METHOD to specify a default shell for all methods.
Specific methods always take precedence over \"*\".
Set SHELL to \\='login-shell to use the connection's default login shell.
You can specify an additional second SHELL command as a fallback
that is used when the login-shell detection fails, e.g.,
Expand Down Expand Up @@ -850,6 +853,7 @@ Exceptions are defined by `vterm-keymap-exceptions'."
(if (ignore-errors (file-remote-p default-directory))
(with-parsed-tramp-file-name default-directory nil
(or (vterm--tramp-get-shell method)
(vterm--tramp-get-shell "*")
(with-connection-local-variables shell-file-name)
vterm-shell))
vterm-shell))
Expand Down

0 comments on commit d625124

Please sign in to comment.