【问题标题】:Can't find .bash_profile in my home directory [duplicate]在我的主目录中找不到 .bash_profile [重复]
【发布时间】:2011-03-08 02:36:20
【问题描述】:

可能重复:
How do I find .bash_profile and add to my shell's initialization file?

我找不到这个文件:.bash_profile。我正在尝试通过 rvm 升级 ruby​​,我需要将 rvm 添加到打开的每个新 shell 窗口中。但我在系统上的任何地方都找不到 .bash_profile。

【问题讨论】:

    标签: bash rvm


    【解决方案1】:

    这是一个简单的 shell 脚本,只需创建它并用所需的内容填充它。

    man bash 描述 Bash 在什么情况下查找哪些(初始化)文件,并为您的特定 Bash 版本执行它。

    【讨论】:

    • 同意。 .bashrc 通常在 Debian 上自动创建,但 .bash_profile 需要“手动”创建。
    猜你喜欢
    • 2022-01-10
    • 2013-06-17
    • 1970-01-01
    • 2016-02-28
    • 2016-11-08
    相关资源
    最近更新 更多