dkin
dkin

Reputation: 1

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;

rvm get stable --autolibs=enable

OR

rbenv install 2.3.0

If i comment out below lines in .bash_profile and .profile, .bash_history resumes...

[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *$

OR

if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi

I want to work on rails with a bash history.

Please let me know if i can get bash history working

Upvotes: 0

Views: 185

Answers (2)

Hunter
Hunter

Reputation: 1687

You could also create a .bash_logout file with the following:

shell_session_update

Sourced from GitHub comment

Upvotes: 0

Johannes Jasper
Johannes Jasper

Reputation: 921

I encountered the same problem, it was resolved here. Simply update your RVM using rvm get head.

Upvotes: 2

Related Questions