justjanne / powerline-go

A beautiful and useful low-latency prompt for your shell, written in go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

modules-right not working in bash

Ajaypathak372 opened this issue · comments

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.

Bash only supports left prompt.