Open postmodern opened 11 years ago
Inspired by #212.
Of course this will misbehave if $HOME
contains spaces.
this should work https://gist.github.com/mpapis/7ffdd6e97533f92a5cff you could shorten the read lines code:
__chruby_get_dirs()
{
# NEW LINE, BE CAREFUL
typeset IFS="
"
__dirs=( $( \cat - ) )
}
@postmodern does @mpapis's approach avoid the keyword splitting problem you were facing?
@aprescott sort of, but I want to keep $RUBIES
an explicit list of directories until 1.0.0.
Allow
RUBIES
to contain dir glob strings ("$HOME/.rubies/*"
) which are expanded aschruby
iterates overRUBIES
. This would allow chruby to see rubies that were just installed into~/.rubies/
.Example Code