[英]bash_history does not work outside session El-Capitan after installing ruby
in mac osx el-capitan .bash_history has stopped working when i close the window or session after i installed ruby (using either rvm or rbebnv) the last lines recorded by bash_history are; 在mac osx el-capitan .bash_history在我安装ruby(使用rvm或rbebnv)后关闭窗口或会话时,停止工作了,bash_history记录的最后一行是;
rvm get stable --autolibs=enable
rvm获得稳定--autolibs = enable
OR 要么
rbenv install 2.3.0
rbenv安装2.3.0
If i comment out below lines in .bash_profile and .profile, .bash_history resumes... 如果我在.bash_profile和.profile中的行下方注释掉,.bash_history将恢复...
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile
[[-s“ $ HOME / .profile”]] &&源“ $ HOME / .profile”#加载默认的.profile
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *$
[[-s“ $ HOME / .rvm / scripts / rvm”]] &&源“ $ HOME / .rvm / scripts / rvm”#将RVM加载到Shell会话* $
OR 要么
if which rbenv > /dev/null;
如果哪个rbenv> / dev / null; then eval "$(rbenv init -)";
然后评估“ $(rbenv init-)”; fi
科幻
I want to work on rails with a bash history. 我想在具有重击历史的轨道上工作。
Please let me know if i can get bash history working 请让我知道我能否获得bash历史记录
I encountered the same problem, it was resolved here . 我遇到了同样的问题,在这里已解决 。 Simply update your RVM using
rvm get head
. 只需使用
rvm get head
更新RVM。
You could also create a .bash_logout
file with the following: 您还可以使用以下内容创建一个
.bash_logout
文件:
shell_session_update
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.