6

Besides opening remote files, tramp can be used to run a remote shell. Unfortunately, there is a problem. On a local machine i have zsh and on remote server only bash is installed. Issuing M-x shell results in exec: 24: /bin/zsh: not found message.

Can I somehow tweak tramp to run bash?

3

Try M-x set-variable RET explicit-shell-file-name RET "/bin/bash"RET - that should make M-x shell use bash from now on. Not sure if there's an easy way to switch depending on which machine you're on...

  • Thanks! Couldn't find that variable. For permanent effect one can put (setq explicit-shell-file-name "/bin/bash") in .emacs – Dmitry Vyal Aug 1 '12 at 8:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.