Running Rbenv and Pythonbrew Side by Side
Today, I went into a problem running pythonbrew after installing ruby using rbenv for setting up this blog last week. It took me awhile to figure out that rbenv was the problem. ~/.bashrc and ~/.profile were the only shell initialization files before rbenv came into the picture.
1 2 3 4 5 6 |
|
When installing rbenv, ~/.bash_profile is created to point to the path ~/.rbenv where ruby is installed.
1 2 |
|
Later I found out that if ~/.bash_profile exist, files ~/.bash_login and ~/.profile will not be included.
Only one of the files below will be included in the following order.
- .bash_profile
- .bash_login
- .profile
Including ~/.bashrc in ~/.bash_profile resolved the issue.
1 2 3 |
|