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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

rbenv version shows symlinks acting like aliases #637

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mislav
Copy link
Member

@mislav mislav commented Oct 16, 2014

Show symlinks acting like aliases under $RBENV_ROOT/versions:

screen shot 2014-10-16 at 12 16 41 pm

Before this symlink aliases would display just like any other version, making it hard to distinguish between "real" versions and symlinks that are just shortcuts.

馃毀 Proof of concept. Needs code cleanup, tests. 馃毀

This is slated for a post-1.0 release. In discussion with @sstephenson we thought that it would be a good idea to pair this with an rbenv alias command to manage such aliases.
(h/t to @tpope https://github.com/tpope/rbenv-aliases)

Example:

    $ rbenv versions
      system
      1.8.7 -> 1.8.7-p375
      1.8.7-p375
      rbx -> rbx-2.2.10
      rbx-2.2.10
Because a version alias points to another version in rbenv, its
executables will get included in the rehash process anyway.

I hoped that this results in rehash speedup because fewer directories
get processed on a system with lots of aliases (I have 9), but the truth
is I didn't witness any speedup. It's likely that the overhead of
`rbenv-versions --skip-aliases` makes up for any performance gain that
we could have had here.
@mislav mislav added the feature label Oct 11, 2015
@ghost ghost deleted a comment Jan 3, 2022
@ghost ghost deleted a comment Jan 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant