This is a fork of plenv segment plugin by omega, changed to work with rbenv.
First install the addon:
pip install -U --user git+https://github.com/tilljoel/powerlinex-segment-rbenv.git
If you make a theme, you can include a custom segment_data:
"version": {
"before": "ⓔ "
},
And then add this to your prefered spot under segments:
{
"module": "powerlinex.segment.rbenv",
"name": "version"
},
The highlight_group of the segment returned is ruby_version, virtualenv,
in that order. This will be highlighted in the same way as virtualenv, unless
you specify something else in the ruby_version color.