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

[Bugfix] Make prompt_rvm list gemset #1353

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

[Bugfix] Make prompt_rvm list gemset #1353

wants to merge 2 commits into from

Conversation

MartyBeGood
Copy link

The RVM Prompt segment doesn't display the used gemset, only the used ruby version.

The documentation for rvm-prompt says that

  • v returns the version (e.g. 2.6.0)
  • p returns the patchlevel (e.g. -rc1)
  • g returns the gemset (e.g. @foo)

So

  • rvm-prompt v p (current master) would return 2.6.0-rc1
  • we should be using rvm-prompt v p g which would return 2.6.0-rc1@foo

Also we don't need to strip a ruby- from the output string. That's the interpreter identifier (for MRI) that would be included with the i flag.

rvm-prompt v p g will not return the interpreter identifier
romkatv added a commit to romkatv/powerlevel10k that referenced this pull request Aug 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant