Last active
December 12, 2024 16:00
-
-
Save itay-grudev/570d3830a651f40b0347 to your computer and use it in GitHub Desktop.
Using RVM with Fish Shell in just 6 lines of code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.config/fish/functions/rvm.fish | |
function rvm --description "Ruby Version Manager" | |
exec bash --login -c "rvm $argv; exec fish" ^&1 | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.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