开发者社区 问答 正文

liunx bash 自定义环境配置文件

linux中,bash的环境配置文件,除了 ~/.bash_profile ~/.bash_login ~/.profile 这几个之外,可不可以自定义其它的名称,比如 ~/.app1_bash_profile 这种的,然后用source读入呢?

展开
收起
a123456678 2016-06-15 16:42:39 1936 分享 版权
1 条回答
写回答
取消 提交回答
  • 可以,只要在默认配置文件中加上一行source即可

    2019-07-17 19:39:40
    赞同 展开评论