tilljoel / powerlinex-segment-rbenv Goto Github PK
View Code? Open in Web Editor NEWShow ruby version in powerline segment, using rbenv
Show ruby version in powerline segment, using rbenv
Hi!
I'm very new to powerline and json. Trying to learn how to customize the prompt theme.
I eager to start playing with customization of my prompt but ll my attempts failed so far(((
I want to add ruby version with rbenv to my right prompt.
Could you be more detailed to which file should I add all the stuff, mentioned in Readme...
I've added to /powerline/config-files/themes/powerline.json:
"version": {
"before": "โ "
},
Added to /powerline/config-files/themes/shell/custom.json:
{
"module": "powerlinex.segment.rbenv",
"name": "version"
},
And included my custom.json theme to config.json:
"shell": {
"colorscheme": "default",
"theme": "custom",
"local_themes": {
"continuation": "continuation",
"select": "select"
}
},
But instead of Ruby version in the prompt that's what I've got so far:
2015-09-27 23:33:10,606:ERROR:shell:segment_generator:Failed to generate segment from {u'name': u'version', u'module': u'powerlinex.segment.rbenv'}: u'function'
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/powerline/segment.py", line 328, in get
contents, _contents_func, module, function_name, name = get_segment_info(data, segment)
File "/usr/local/lib/python2.7/site-packages/powerline/segment.py", line 62, in get_function
function_name = segment['function']
KeyError: u'function'
What am I doing wrong?
Please help me to figure out how to add this to my prompt
Thank you very much!!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.