olemb / git-prompt

Minimal Git prompt
MIT License
11 stars 4 forks source link

right side #1

Open lpuljic opened 6 years ago

lpuljic commented 6 years ago

Hi, Is it possible to make this work, if i use RPS1, it seems it only puts it in the middle and not on the right. Thanks

olemb commented 3 years ago

I've looked into this a little and it seems to be caused by the ANSI escape codes I use to set colors. If I remove them it puts it all the way to the right.

I'm not sure how to fix this at the moment but there must be a solution. I would be strange if RPS1 doesn't support colors.

(Are you using zsh by the way? That's what I tested with.)

olemb commented 3 years ago

This seems to work in zsh:

RPS1='%F{yellow}Test%f'

I'm not sure how to integrate that in git-prompt. Maybe a -zsh flag?