gpt4 book ai didi

bash - 为每个终端加载 .bash_profile

转载 作者:行者123 更新时间:2023-12-02 05:41:10 25 4
gpt4 key购买 nike

我在 中设置了一些别名.bash_profile 在我的 Max OS X 上。
它有效,但是当我打开一个新标签时,我总是必须加载我的 .bash_profile 文件与此命令:

source ~/.bash_profile

即使我正在重新启动 Mac 或 Linux 计算机,我怎样才能使它适用于我打开的每个终端?

最佳答案

如果您使用 哦,我的 zsh ,您可以添加 源 ~/.bash_profile 行末 .zshrc 文件位于以下路径:/Users/您的用户名/.zshrc ,然后重新启动您的终端/iTerm2 应用程序。

Note that this file is hidden. You can press CMD + SHIFT + . in Finder tosee it, Or just open it in default text editor with the following command from terminal:
open /Users/YOUR USER NAME/.zshrc

关于bash - 为每个终端加载 .bash_profile,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34352907/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com