我已经使用了许多不同的基于*nix的系统,看起来我使用的Bash的每种风格都有不同的算法来决定运行哪些启动脚本.出于设置环境变量和别名以及打印启动消息(例如MOTD)等任务的目的,启动脚本是否适合执行这些操作?
是什么把事情之间的差异.bashrc,.bash_profile以及.environment?我也看到其他的文件,例如.login,.bash_login和.profile; 这些是否相关?在物理登录,通过ssh远程登录以及打开新的终端窗口时,运行哪些不同?跨平台(包括Mac OS X(及其Terminal.app)和Cygwin Bash)是否存在显着差异?
以上不是第一次工作,第二次工作.
尝试将ruby版本设置为2.0.0以用于任何新的shell窗口.
干
$ rvm use 2.0.0 --default
Run Code Online (Sandbox Code Playgroud)
给
Warning! PATH is not properly set up, '/home/durrantm/.rvm/gems/ruby-1.9.3-p125/
bin' is not at first place,
usually this is caused by shell initialization files - check them for '
PATH=...' entries,
it might also help to re-add RVM to your dotfiles: 'rvm get stable --au
to-dotfiles',
to fix temporarily in this shell session run: 'rvm use ruby-1.9.3-p125'
.
Using /home/durrantm/.rvm/gems/ruby-2.0.0-p247
Run Code Online (Sandbox Code Playgroud)
然后做同样的事情
$ rvm use 2.0.0 --default
Run Code Online (Sandbox Code Playgroud)
现在没有错误,即
$ rvm use 2.0.0 --default
Using …Run Code Online (Sandbox Code Playgroud) 每当我转到带有文件的.rvmrc文件夹时,都会发出警告:
Warning! PATH is not properly set up, '/home/me/.rvm/gems/ruby-2.0.0-p247/bin' is not available,
usually this is caused by shell initialization files - check them for 'PATH=...' entries,
to fix run: 'rvm use ruby-2.0.0-p247'.
Run Code Online (Sandbox Code Playgroud)
我做了rvm use ruby-2.0.0-p247,但警告仍然存在.
注意:没有错误,我能够正常运行我的应用程序,但警告非常烦人.有任何想法吗?