jimeh / git-aware-prompt

Display current Git branch name in your terminal prompt when in a Git working directory.
Creative Commons Zero v1.0 Universal
2.16k stars 340 forks source link

Underline in all elements #63

Closed jkeilla closed 5 years ago

jkeilla commented 5 years ago

When the underline style is apply in one element, for example, in path of the files, All the others elements too stay with underline style. My personalization: export PS1="\n \[$undblu\]\w \[$txtylw\]\$git_branch\[$txtred\]\$git_dirty\[$bldblu\] \$ \[$txtrst\]"

Result: bash

I wear Ubuntu 16.04 with native bash

lethosor commented 5 years ago

That's how escape sequences work - it's not specific to this tool at all. tput rmul is what you need to clear the underline, so you can either add $(tput rmul) at the appropriate point in your prompt or to a variable in colors.sh.

jkeilla commented 5 years ago

You helped me, thank you :)