RVM/rbenv mac 上每次打开终端,都需要重新载入 rvm ,怎么设置自动载入

sensi · March 06, 2014 · Last by sensi replied at March 07, 2014 · 8785 hits

如题

每次打开终端,输入 rvm -v 都显示 command not found ..

必须手动载入,,

$ source ~/.rvm/scripts/rvm

请问怎么让它自动载入,否则这样很麻烦的,

已经解决 —————————————————————— 方案:

安装 RVM

$ bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)

配置 RVM 自动加载,将下面这一行代码添加到~/.bash_profile 中,然后退出 iTerm 并重新启动

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

这样做每次打开 term 都很慢。

#2 楼 @cloudqq 我没发现打开项目慢啊,如果项目以后真的项目变慢,实在无法忍受 就去忍受手动载入!谢谢你的回答

You need to Sign in before reply, if you don't have an account, please Sign up first.