Emacs: Default binary to run with M-x ansi-term

前端 未结 2 841
傲寒
傲寒 2021-02-13 20:39

Is there a way to have Emacs to prompt by default for a binary of my choice when running M-x ansi-term. It always asks me for /bin/zsh but I have a new

2条回答
  •  臣服心动
    2021-02-13 21:22

    There are a number of ways to specify the default shell:

    • Set the variable explicit-shell-file-name. For example, in your .emacs: (setq explicit-shell-file-name "/bin/zsh")
    • Set the environment variable ESHELL
    • Set the environment variable SHELL

提交回复
热议问题