akermu / emacs-libvterm

Emacs libvterm integration
GNU General Public License v3.0
1.71k stars 136 forks source link

Feature/Documentation request: customizing remote shells #655

Open mpedramfar opened 1 year ago

mpedramfar commented 1 year ago

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

Bawaw commented 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")))

aramirezreyes commented 1 year ago

I've been looking for this for a while, thanks! Where should I find this kind of documentation?

Thaodan commented 11 months 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 think this works quite good however it would be better if the login shell from the target host would be used on the remote.