TaKO8Ki / frum

A little bit fast and modern Ruby version manager written in Rust
MIT License
628 stars 15 forks source link

Fix RUBY_VERSION to be set to current version used #93

Open bkuhlmann opened 3 years ago

bkuhlmann commented 3 years ago

Overview

When using Frum, I'm not seeing RUBY_VERSION set within the environment.

Screencast

https://user-images.githubusercontent.com/50245/128615599-247d8534-759a-4a4e-ad84-962bb6a80f23.mp4

Steps to Recreate

  1. Install Frum.
  2. Configure Frum for your shell (in my case, I'm using Bash).
  3. Run ENV | grep RUBY, notice that RUBY_VERSION doesn't display in the list.

Desired Behavior

As one switches between different Ruby versions, it'd be nice to see RUBY_VERSION reflect the current version being used. This would match behavior of similar Ruby version managers.

Environment

CodeMeister commented 2 years ago

Can we bump this up the priority list a bit?

When testing code against multiple version of ruby on a regular basis, being able to display the current ruby version in the shell prompt would be great.

If an environmental variable is too tricky, perhaps a shell command similar to RVM's approach might be simper.

DcsMarionDickten commented 6 months ago

Using 11.6 and frum 0.1.2, the RUBY_VERSION variable is displayed (on my machine) but contains the wrong value.