如何为ansi

编程入门 行业动态 更新时间:2024-10-27 11:24:36
何为ansi-term / multi-term加载别名和环境变量?(How to load aliases and environment variables for ansi-term/multi-term?)

我是否必须设置类似.emacs.d/init_bash.sh (对于shell模式),或者它可以直接读取我的~/.bash_profile吗? 如果是后者,如何设置配置ansi-term / multi-term以在启动时自动获取此文件?

Do I have to set up something like .emacs.d/init_bash.sh (as for shell-mode), or can it read my ~/.bash_profile directly? If the latter, how do I set configure ansi-term/multi-term to source this file automatically on start-up?

最满意答案

仅自动登录shell源.bash_profile。 常规shell源只有.bashrc。 但是,这通常不是问题,因为所有shell通常都是从登录shell生成的,因此继承了它的环境。 当我使用ansi-term时,它不需要我的部分和功能,就像使用gnome-terminal打开的终端一样。

Only login shells source .bash_profile automatically. Regular shell source only .bashrc. This shouldn't regularly be a problem, however, since all shells are usually spawned from the login shell and therefore inherit its environment. When I use ansi-term it requires no additional setup on my part and functions just like a terminal opened with gnome-terminal, for instance.

更多推荐

本文发布于:2023-08-07 21:55:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1466039.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:何为   ansi

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!