Fish RVM Use error

拥有回忆 提交于 2019-12-04 12:59:43

I had the same issue. It's an incompatibility caused by the multiline value of the rvm_debug variable. I patched the function to ignore this variable completely by making a small change.

Open ~/.config/fish/functions/rvm.fish and change line 7 from this:

and eval (grep '^rvm\|^[^=]*PATH\|^GEM_HOME' $env_file | grep -v '_clr=' | sed '/^[^=]*PATH/s/:/" "/g; s/^/set -xg /; s/=/ "/; s/$/" ;/; s/(//; s/)//')

into this:

and eval (grep '^rvm\|^[^=]*PATH\|^GEM_HOME' $env_file | grep -v '_clr=' | grep -v 'rvm_debug=' | sed '/^[^=]*PATH/s/:/" "/g; s/^/set -xg /; s/=/ "/; s/$/" ;/; s/(//; s/)//')

I don't know what rvm_debug is being used for, but my system seems to work without it.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!