powerline / powerline

Powerline is a statusline plugin for vim, and provides statuslines and prompts for several other applications, including zsh, bash, tmux, IPython, Awesome and Qtile.

Home Page:https://powerline.readthedocs.org/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VCS branch segment displays regardless of local user config in BASH on latest

jessebot opened this issue · comments

Issue

In BASH, regardless of if you have the VCS branch segment set, it will try to display, specifically on the right side of the prompt.

Work around

add the VCS branch function to your local config (in my case in ~/.config/powerline/themes/shell/default.json) and then set display to false:

        "right": [
            {
                "function": "powerline.segments.common.vcs.branch",
                "display": false
            }
        ]

I can't figure out why I had to do this though, as it wasn't needed on the install via pypi (pip3.11 install powerline-status). This started when I installed the latest yesterday (pip3.11 install --upgrade git+ssh://git@github.com/powerline/powerline). I'm set for now, but wanted to put something in the issues, so people understand how to fix it, because it also slows the prompt dramatically and causes issues with typing commands (parts of commands will disappear while you are typing).

I think this might be related to the default theme used (that is, the theme set in config.json): the default default.json has the VCS on the right.

Does this issue persist if you switch to e.g. the leftonly theme for bash?

Thanks for the quick response!

How can I switch to the leftonly theme? Do I need to change the left segment list to be to leftonly or is there a special directory or file I should modify?