Open MartyBeGood opened 4 years ago
The RVM Prompt segment doesn't display the used gemset, only the used ruby version.
The documentation for rvm-prompt says that
v
2.6.0
p
-rc1
g
@foo
So
rvm-prompt v p
2.6.0-rc1
rvm-prompt v p g
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.
ruby-
i
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 return2.6.0-rc1
rvm-prompt v p g
which would return2.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 thei
flag.