Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jessebot opened this issue Dec 19, 2022 · 2 comments

Comments

@jessebot
Copy link
Contributor

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).

@PH111P
Copy link
Member

PH111P commented Dec 19, 2022

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?

@jessebot
Copy link
Contributor Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants