Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 2 down vote accepted

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...

share|improve this answer
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 posting your answer, you agree to the privacy policy and terms of service.

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