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

Default Ruby is lost after .ruby-version #184

Closed
jordelver opened this issue Jul 22, 2013 · 3 comments
Closed

Default Ruby is lost after .ruby-version #184

jordelver opened this issue Jul 22, 2013 · 3 comments
Labels

Comments

@jordelver
Copy link

I set a default Ruby in my ~/.zshrc

source /usr/local/share/chruby/chruby.sh
source /usr/local/share/chruby/auto.sh

chruby 2.0.0

The default Ruby is used as expected. When I change into a directory containing a .ruby-version file, the Ruby is changed to the version contained within, as expected.

When I change out of the directory, the system Ruby is now the default again.

Is there anyway to restore the original default without having to invoke chruby 2.0.0 again?

@postmodern
Copy link
Owner

Yep, currently chruby has no way of retaining the default version. Will work on this in 0.4.0.

@postmodern
Copy link
Owner

See #170. Probably the least disruptive approach would be to use ~/.ruby-version as the default version to fall back to.

@jordelver
Copy link
Author

Thanks, adding a ~/.ruby-version is a good workaround 👍

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

No branches or pull requests

2 participants