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 |
Having the same issue as LuizCarvalho, no error messages in terminal, which is breaking my xmonad session. any ideas?
@luizcarvalho, @sandric, same here. STDERR
goes into the abyss. This is a problem. Additionally, loading the shell is noticeably slower.
I found the solution.
if test -z $rvm_bin_path
exec bash --login -c "exec fish" ^&1
end
Adding ^&1
to the exec redirects both standard output and standard error output.
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
The other solution from http://rvm.io/integration/fish destroys my PATH.
Somehow after adding your bits to config.fish I cannot
su
.