andrewconl.in is CSSing
blog til projects meta feed [archive]

~ / til / Using RVM with Alacritty 2024-01-10 | 1 minute

I have have been using Alacritty as my terminal emulator for the past few months, and I am absolutely loving it so far. However, I have recently run into an issue while trying to use RVM (Ruby Version Manager).

When running the command:

rvm use <$RUBY_VERSION>

I get the following error message:

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 an example.

So, we need to be in a login shell. Unfortunately, Alacritty does not have a settings GUI like gnome-terminal and similar, and after thorough investigation I couldn’t find a way to set this up through Alacritty. We need a different solution.

Luckily, this is possible through the shell itself. You can open a login shell by running the following command (press Ctrl+D to return to the interactive shell):

bash --login

This also works with zsh, or Z-shell:

zsh --login

Unfortunately for all you fishers out there, I couldn’t find a way to to this with fish. If you know how, send me an email!

There are some drawbacks to this method.

  1. You will have to do this every time you want to use RVM.
  2. Commands such as rvm use only persist in the login shell, so you will have to stay in there if you want to use RVM, and the version of Ruby that you have selected. I toyed about with using zsh --login -c "rvm use <$RUBY_VERSION>", but this will immediately return you to the interactive shell without any of the changes that you made.


Issues or comments? Email me!

Articles from blogs I follow around the net

Pinout Leaf Generator

Pinout Leaf Generator If you're working with modern electronics, may it be a Raspberry Pi, an ESP32 microcontroller or any of the myriad of available development boards, you are aware of pinout diagrams. They are helpful graphics quickly showing you th…

via splitbrain.org - blog April 27, 2025

"It's not that bad" they told me - Coreboot

I don't know if I enjoyed doing this. This was hell.

via The Cool Blog April 9, 2025

What's New in Neovim 0.11

Neovim 0.11 was just released. As in previous installments in this series, let’s talk a bit about some of the big highlights! As always, the full list of changes can be found in the release notes (use :h news to read inside of Neovim). Table of Contents B…

via g.p. anders March 26, 2025

Generated by openring

Buy Me a Coffee at ko-fi.com

Be nice to each other!



Last updated: 2025-05-17 12:31:17 +0100
v25.9.U0517

© Andrew Conlin 2023-2025
All rights reverse engineered