Code Monkey home page Code Monkey logo

powerlinex-segment-rbenv's People

Contributors

tilljoel avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

delphinus

powerlinex-segment-rbenv's Issues

Failing to add ruby version :((

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!!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.