加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

rvm – 如何找到.bash_profile并添加到我的shell的初始化文件中

发布时间:2020-12-16 01:13:53 所属栏目:安全 来源:网络整理
导读:我正在尝试使用rvm升级 ruby. 在 pragmatic site,它说: The important part is to add the following line to the end of your shell’s initialization file (.bash_profile): [[ -s "$HOME/.rvm/scripts/rvm" ]] source "$HOME/.rvm/scripts/rvm" 我该怎
我正在尝试使用rvm升级 ruby.
在 pragmatic site,它说:

The important part is to add the following line to the end of your shell’s initialization file (.bash_profile):

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"

我该怎么做呢?这个初始化文件在哪里?
请帮忙

它将是/home/$USER/.bash_profile,但只有在您实际使用bash作为shell时才会出现.其他shell将使用带有名称的“点文件”代替.您可以使用ls -ad $HOME /.*查看它们

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读