Skip to content

Instantly share code, notes, and snippets.

@thegreyd
Forked from itay-grudev/rvm.fish
Created July 10, 2017 00:17
Show Gist options
  • Save thegreyd/4eb04034ae3794d423eecddaf475a404 to your computer and use it in GitHub Desktop.
Save thegreyd/4eb04034ae3794d423eecddaf475a404 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