Open mpedramfar opened 1 year ago
You can set the remote shell by setting the the vterm-tramp-shells
variable.
E.g. if you want to use bash in your case:
(setq vterm-tramp-shells '(("ssh" "/bin/bash")))
I've been looking for this for a while, thanks! Where should I find this kind of documentation?
You can set the remote shell by setting the the
vterm-tramp-shells
variable.E.g. if you want to use bash in your case:
(setq vterm-tramp-shells '(("ssh" "/bin/bash")))
I think this works quite good however it would be better if the login shell from the target host would be used on the remote.
When I open a buffer over ssh with tramp and open vterm there, the shell that's opened is not exactly identical to the shell I would get if I open vterm locally and then ssh. In particular, the prompt is different and the shell history file is overriden with
tramp-histfile-override
(https://github.com/akermu/emacs-libvterm/issues/538). I'm not familiar with tramp, so I can't say for sure if these are the only things that have been changed.Would it be possible to have the option of opening a "normal" shell instead? If this can be done easily by changing some variables, it would be great to have it in README so that users could see the set of all options that they can configure for remote shells. Thanks