-
-
Notifications
You must be signed in to change notification settings - Fork 189
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
Load RUBIES from common directories #29
Comments
This can be done with:
|
Hmm nope:
|
Better solution from @havenwood:
|
or we could just append them to an empty Array:
|
Arg, zsh strikes again:
|
I removed the |
* Search in /usr/local/rubies, /opt/rubies, ~/.rubies. * Only allow directories which contain bin/ruby.
for rubies in /opt/rubies /usr/rubies /usr/local/rubies "$HOME"/.rubies "$HOME"/.rvm/rubies "$HOME"/.rbfu/rubies "$HOME"/.rbenv/versions; do
[[ -d "$rubies" ]] && RUBIES+=("$rubies"/*)
done Too much to include migration directories as common directories? Would allow us to autodetect existing installed Rubies for users migrating to chruby. |
I think that should be an explicit choice by the user. That way they don't forget about |
Merged into the 0.3.0. |
This has been released in 0.3.0. |
We should load RUBIES from common directories where Rubies are commonly installed.
/usr/local/rubies/
/opt/rubies/
~/.rubies/
The text was updated successfully, but these errors were encountered: