Emacs:使用M-x ansi-term运行的默认二进制文件 [英] Emacs: Default binary to run with M-x ansi-term

查看:206
本文介绍了Emacs:使用M-x ansi-term运行的默认二进制文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在运行 M-x ansi-term 时,有没有办法让Emacs默认提示我选择的二进制文件。它总是要求我 / bin / zsh ,但我有一个新的安装 zsh 在不同的路径。 p>

或者,当我键入 Mx my-ansi-term

解决方案

有很多方法可以指定默认的shell:




  • 设置变量 explicit-shell-file-name 。例如,在您的 .emacs 中:(setq explicit-shell-file-name/ bin / zsh)

  • 设置环境变量 ESHELL

  • 设置环境变量 SHELL


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 installation of zsh in a different path.

Alternatively, it would be great to have Emacs to just run the binary I want when I type M-x my-ansi-term

解决方案

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

这篇关于Emacs:使用M-x ansi-term运行的默认二进制文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆