Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow ability to set RUBYOPT when auto-switching #430

Open
ordinaryzelig opened this issue Jan 22, 2020 · 2 comments
Open

Allow ability to set RUBYOPT when auto-switching #430

ordinaryzelig opened this issue Jan 22, 2020 · 2 comments

Comments

@ordinaryzelig
Copy link

chruby command line allows setting of RUBYOPT, but auto-switching is limited to only the ruby argument. Would be nice to somehow allow the addition of these options when auto-switching. Quickly tried to add them to .ruby-version, but after looking at the auth.sh script, the file contents are taken literally as only the ruby version.

@chadbailey59
Copy link

+1 to this. I'm trying to use chruby ruby-2.7.0 -W:no-deprecated -W:no-experimental to suppress a lot of Rails-related deprecation warnings. That works fine on the command line, but there's currently no way to replicate that in a .ruby-version file. I get that .ruby-version is supposed to be an agnostic format, but I'm posting this to subscribe in case anyone has a better idea. :)

@maxhollmann
Copy link

I'm working around this issue by invoking chruby from direnv instead of using the zsh plugin for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants