Matijs van Zuijlen escreveu isso aĆ­:
> What I would really like to happen is one of the following:
> 
> - Bug #637914 is resolved, and rbenv adds the path that is appropriate for
>   the selected Ruby verion to PATH.
> - rbenv creates shims for any script it finds in /usr/local/bin that starts
>   with a ruby hashbang.

What do you think of:

- forget about /usr/local, since rbenv is meant to manage interpreters
  on a per-user basis.
- `rbenv exec` sets GEM_HOME to ~/.rbenv/versions/1.8.7-debian/gems, so
  that Rubygems and bundler will install stuff to there.
- `rbenv rehash` symlinks all programs installed in $GEM_HOME/bin into
  ~/.rbenv/versions/1.8.7-debian/bin so that they all get shims in
  ~/.rbenv/shims

This way the interpreters installed by `rbenv alternatives` will behave
more like regular rbenv-installed interpreters. And your gem programs
installed under one interpreter are only available to that interpreter.

-- 
Antonio Terceiro <terce...@debian.org>

Attachment: signature.asc
Description: Digital signature

Reply via email to