Last active
February 19, 2020 10:26
-
-
Save andrewytliu/6077153 to your computer and use it in GitHub Desktop.
RVM fish fix
This file contains hidden or 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
# in ~/.config/fish/config.fish | |
# Load the default rubies | |
if test -z $rvm_bin_path | |
exec bash --login -c "exec fish" ^&1 | |
end |
This file contains hidden or 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" | |
end |
THANK YOU!!!!
Thanks @andreicek! I've updated the snippet.
Starting a shell doesnt produce anything. No error... I think the initial problem reported by @luizcarvalho is back
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found the solution.
Adding
^&1
to the exec redirects both standard output and standard error output.