diff options
| author | Florian Rommel <mail@florommel.de> | 2024-06-22 00:46:21 +0200 |
|---|---|---|
| committer | Gabriele Bozzola <sbozzolator@gmail.com> | 2024-12-17 19:31:26 -0800 |
| commit | 99c1f5e76ac927825775c887c93e46036fac7327 (patch) | |
| tree | c2bd3db0d7ffe4f9f59ee56c30b96ded075d9c25 | |
| parent | f64729ed8b59e46ce827d28222c4087c538de562 (diff) | |
Add README entry for vterm-tramp-shells
| -rw-r--r-- | README.md | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -482,6 +482,34 @@ fake-newlines are removed on entering copy-mode and re-inserted on leaving copy mode. Also truncate-lines is set to t on entering copy-mode and set to nil on leaving. +## `vterm-tramp-shells` + +The shell that gets run in the vterm for tramp. + +This has to be a list of pairs of the format: +`(TRAMP-METHOD SHELL)` + +The `TRAMP-METHOD` is a method string as used by tramp (e.g., `"ssh"`). +Use t as `TRAMP-METHOD` to specify a default shell for all methods. +Specific methods always take precedence over `t`. + +Set SHELL to `'login-shell` to use the user's login shell on the remote host. +The login-shell detection currently works for POSIX-compliant remote hosts that +have the `getent` command (regular GNU/Linux distros, *BSDs, but not MacOS X +unfortunately). +You can specify an additional second `SHELL` command as a fallback +that is used when the login-shell detection fails, e.g., +`'(("ssh" login-shell "/bin/bash") ...)` +If no second `SHELL` command is specified with `'login-shell`, vterm will +fall back to tramp's shell. + +Examples: +- Usee the default login shell for all methods, except for docker. + `'((t login-shell) ("docker" "/bin/sh"))` +- Use the default login shell for ssh and scp, fall back to "/bin/bash". + Use tramp's default shell for all other methods. + `'(("ssh" login-shell "/bin/bash") ("scp" login-shell "/bin/bash"))` + ## Keybindings If you want a key to be sent to the terminal, bind it to `vterm--self-insert`, |
