jaspernbrouwer / powerline-gitstatus

A Powerline segment for showing the status of a Git working copy
MIT License
383 stars 53 forks source link

Unable to get gitstatus on macOS Sierra #14

Closed adun closed 7 years ago

adun commented 7 years ago

Hi,

I can't get gitstatus working on macOS Sierra. Powerline is working fine and the command powerline-lint -d returns nothing after adding Gitstatus segments in config files.

I've installed powerline using the following steps:

I've put the whole configuration files here: gist Basically I've taken the default configuration files and added gitstatus segments.

Here is a screenshot of my Terminal after completing the above steps: powerline

Thank in advance for your help! adun

jaspernbrouwer commented 7 years ago

It looks like you're using bash, and bash doesn't support a right prompt, where the default configuration puts the segment.

Try adding the segment to the "left" section of segments (not "right") of your configuration:

{
    "segments": {
        "left": [
            ...,
            {
                "function": "powerline_gitstatus.gitstatus",
                "priority": 40
            }
        ],
        "right": []
    }
}
jaspernbrouwer commented 7 years ago

If that doesn't help, explicitly clear the whole "right" section. I'm not sure how stuff put there reacts in bash.

Finally, set the log-level to DEBUG, configure a log-file, and look what's appearing there.

adun commented 7 years ago

Hi Jasper,

I forgot about right section is not supported in bash. I took the left-only section config file and added the gitstatus segment. Now it's working fine.

Thanks for your answers and the awesome work 👍.