jaspernbrouwer / powerline-gitstatus

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

gitstatus not showing in mac #32

Open janusadmissions opened 5 years ago

janusadmissions commented 5 years ago

Hi,

nothing is showing on my Mac terminal.

here is my .config/powerline/config_files/config.json:

`{ "common": { "term_truecolor": false }, "ext": { "ipython": { "colorscheme": "default", "theme": "in", "local_themes": { "rewrite": "rewrite", "out": "out", "in2": "in2" } }, "pdb": { "colorscheme": "default", "theme": "default" }, "shell": { "colorscheme": "default", "theme": "default_leftonly", "local_themes": { "continuation": "continuation", "select": "select" } }, "tmux": { "colorscheme": "default", "theme": "default" }, "vim": { "colorscheme": "default", "theme": "default", "local_themes": { "tabline": "tabline",

            "cmdwin": "cmdwin",
            "help": "help",
            "quickfix": "quickfix",

            "powerline.matchers.vim.plugin.nerdtree.nerdtree": "plugin_nerdtree",
            "powerline.matchers.vim.plugin.commandt.commandt": "plugin_commandt",
            "powerline.matchers.vim.plugin.gundo.gundo": "plugin_gundo",
            "powerline.matchers.vim.plugin.gundo.gundo_preview": "plugin_gundo-preview"
        }
    },
    "wm": {
        "colorscheme": "default",
        "theme": "default",
        "update_interval": 2
    }
}

} `

and here is my .config/powerline/config_files/themes/shell/default_leftonly.json:

{ "segments": { "left": [ { "function": "powerline.segments.common.net.hostname", "priority": 10 }, { "function": "powerline.segments.common.env.user", "priority": 30 }, { "function": "powerline.segments.common.env.virtualenv", "priority": 50 }, { "function": "powerline.segments.common.vcs.branch", "priority": 40 }, { "function": "powerline.segments.shell.cwd", "priority": 10 }, { "function": "powerline.segments.shell.jobnum", "priority": 20 }, { "function": "powerline.segments.shell.last_pipe_status", "priority": 10 }, { "function": "powerline_gitstatus.gitstatus", "priority": 40 } ] } }

Finally, here is my .config/powerline/config_files/colorschemes/shell/default.json:

{ "name": "Default color scheme for shell prompts", "groups": { "hostname": { "fg": "brightyellow", "bg": "mediumorange", "attrs": [] }, "environment": { "fg": "white", "bg": "darkestgreen", "attrs": [] }, "mode": { "fg": "darkestgreen", "bg": "brightgreen", "attrs": ["bold"] }, "attached_clients": { "fg": "white", "bg": "darkestgreen", "attrs": [] } "gitstatus": { "fg": "gray8", "bg": "gray2", "attrs": [] }, "gitstatus_branch": { "fg": "gray8", "bg": "gray2", "attrs": [] }, "gitstatus_branch_clean": { "fg": "green", "bg": "gray2", "attrs": [] }, "gitstatus_branch_dirty": { "fg": "gray8", "bg": "gray2", "attrs": [] }, "gitstatus_branch_detached": { "fg": "mediumpurple", "bg": "gray2", "attrs": [] }, "gitstatus_tag": { "fg": "darkcyan", "bg": "gray2", "attrs": [] }, "gitstatus_behind": { "fg": "gray10", "bg": "gray2", "attrs": [] }, "gitstatus_ahead": { "fg": "gray10", "bg": "gray2", "attrs": [] }, "gitstatus_staged": { "fg": "green", "bg": "gray2", "attrs": [] }, "gitstatus_unmerged": { "fg": "brightred", "bg": "gray2", "attrs": [] }, "gitstatus_changed": { "fg": "mediumorange", "bg": "gray2", "attrs": [] }, "gitstatus_untracked": { "fg": "brightestorange", "bg": "gray2", "attrs": [] }, "gitstatus_stashed": { "fg": "darkblue", "bg": "gray2", "attrs": [] }, "gitstatus:divider": { "fg": "gray8", "bg": "gray2", "attrs": [] } }, "mode_translations": { "vicmd": { "groups": { "mode": {"fg": "darkestcyan", "bg": "white", "attrs": ["bold"]} } } } }

Any help would be appreciated!

atodniAr commented 5 years ago

Not showing in OS X 10.14.2 as well. I installed powerline with conda forge, gitstatus with pip. Now powerline is working, but gitstatus is completely not working.

atodniAr commented 5 years ago

Not showing in OS X 10.14.2 as well. I installed powerline with conda forge, gitstatus with pip. Now powerline is working, but gitstatus is completely not working.

I installed powerline and gitstatus use pip on another Mac (10.14.3). This time gitstatus works. It is likely I didn't correctly configure powerline-daemon.

@janusadmissions Have you tried restart the daemon with powerline-daemon —-replace?

aDotInTheVoid commented 5 years ago

I had this problem myself and restarting the daemon fixed it. Maybe this should be added to the docs.

andreabreu76 commented 2 years ago

Hi, mine show branch on right side on terminal, but dont show modified count or added count ...