Emacs 27.1

When I run ansi-term, it every time ask me about

Run programm /bin/sh

I every time answer - yes

Is is possible to disable this question and immediately run ansi-term?

1 Answer 1


Define your own command that specifies which program to run, and ansi-term won't prompt you:

(defun my-ansi-term ()
  (ansi-term "/bin/bash"))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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