When I open the terminal, then go into the rails application, rvm will load the gemset into the .ruby-gemset as follows:
> cd my_application/ > rvm gemset list
The output is as follows:
gemsets for ruby-2.2.2 (found in /home/yakout/.rvm/gems/ruby-2.2.2) (default) => my_gemset global
Then I open a new tab in the terminal and run the rvm gemset list , the output will be:
gemsets for ruby-2.2.1 (found in /home/yakout/.rvm/gems/ruby-2.2.1) => (default) global
I put the following line in the .profile file:
export PATH="$PATH:$HOME/.rvm/bin"
And I put the following lines in the .bash_profile file:
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
And I put the following line in the .bashrc :
PATH=$PATH:$HOME/.rvm/bin
And I changed the settings of my terminal: Edit β Preferences β Title and Command tab β Run command as a login shell .
How can I make rvm load the current gemset when opening a new tab in the terminal?
source share