Skip to content
This repository was archived by the owner on Apr 24, 2020. It is now read-only.
This repository was archived by the owner on Apr 24, 2020. It is now read-only.

rbenv issues #215

@MatthewMDavis

Description

@MatthewMDavis

First, a documentation issue: the link to rbenv information on the repo main page doesn't go anywhere.

Second, I'm trying to understand why the rbenv segment works the way it does. The segment tests for the RBENV_VERSION environment variable, which only returns true if one has set a shell-specific rbenv version -- one that trumps the global and local settings. So if I'm in a directory that's under a local rbenv version, the prompt won't tell me that.

Obviously, if I do have a shell-specific rbenv version in effect, I'll want my shell to tell me that -- what I want the prompt to tell me is what version of Ruby is in effect, so I'll want to know that my local version is preempted by a shell-specific version. But since I don't, I'm not clear on why this segment is keying on this environment variable, rather than testing to see whether there is an rbenv version in effect right now.

Should I be rigging something up to set this variable equal to the output of 'rbenv version' if I want to have my prompt tell me what version of Ruby is in effect?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions