You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 24, 2020. It is now read-only.
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?