Skip to content

Instantly share code, notes, and snippets.

@itay-grudev
Last active March 23, 2022 13:31
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save itay-grudev/570d3830a651f40b0347 to your computer and use it in GitHub Desktop.
Save itay-grudev/570d3830a651f40b0347 to your computer and use it in GitHub Desktop.
Using RVM with Fish Shell in just 6 lines of code
# ~/.config/fish/functions/rvm.fish
function rvm --description "Ruby Version Manager"
exec bash --login -c "rvm $argv; exec fish" ^&1
end
# ~/.config/fish/config.fish
# Loads the default ruby and appends stderr to stdout
if test -z $rvm_bin_path
exec bash --login -c "exec fish" ^&1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment