I use rvm and I like byobu terminal, so I want to use them together. Today, when I tried to write an article at https://blog.thecodewhisperer.com, I saw this:

$ rvm use 2.4.3

RVM is not a function, selecting rubies with 'rvm use ...' will not work.
  
You need to change your terminal emulator preferences to allow login shell.
Sometimes it is required to use `/bin/bash --login` as the command.
Please visit https://rvm.io/integration/gnome-terminal/ for a example.

I run Gnome 3 on Pop!_OS 18, so I visited https://rvm.io/integration/gnome-terminal and followed the instructions there. I opened the Preferences for my terminal application and verified that “Run command as a login shell” is enabled.

That did not seem to help.

Workaround

# In a byobu session...
# Load the script your own self!
$ source $HOME/.rvm/scripts/rvm
$ rvm use 2.4.3
Using /home/jbrains/.rvm/gems/ruby-2.4.3

Solution?

I don’t know. I suppose I get to learn about various profile scripts and how the shell loads them. I assume that one of the various profile scripts doesn’t load (“source”) the rvm script, but it should. If you know how to figure that out, then please use the contact links below to tell me or tweet a mention to be about it. I’d appreciate it.