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

modules-right not working in bash #368

Open
Ajaypathak372 opened this issue Dec 6, 2022 · 1 comment
Open

modules-right not working in bash #368

Ajaypathak372 opened this issue Dec 6, 2022 · 1 comment

Comments

@Ajaypathak372
Copy link

I am using Bash and in the powerline-go, I am using -modules-right but the things are not showing in the right side they are showing in the left side.

Screenshot from 2022-12-07 00-12-24

My .bashrc file:

powerline_args=(
  -shell bash
  -eval
  -modules-right git,jobs,time
  -numeric-exit-codes
  -hostname-only-if-ssh
  -modules venv,user,ssh,cwd,perms,exit,hg,root
  -cwd-max-depth 4
)

function _update_ps1() {
    eval "$($GOPATH/bin/powerline-go -error $? ${powerline_args[@]})"
}

if [ "$TERM" != "linux" ] && [ -f "$GOPATH/bin/powerline-go" ]; then
    PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi

I don't know if its a bug with bash or maybe it's just not working in my case. I will be really thankful if anyone have any clue about this.

@boydkelly
Copy link

Bash only supports left prompt.

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