Bash-it / bash-it

A community Bash framework.
MIT License
14.14k stars 2.29k forks source link

Add support to powerline themes to override foreground color #2231

Closed kmcfate closed 8 months ago

kmcfate commented 8 months ago

Description

This change allows the override of foreground color for the powerline themes. You can change the foreground color by settings POWERLINE_PROMPT_FOREGROUND_COLOR. It still retains the default of using the terminal foreground color.

Motivation and Context

For people that use themes like solarized dark, the contrast between the standard terminal text and certain backgrounds makes it very hard to read. This allows for changing the foreground text to something like '15' (bright white) making the prompt much more legible.

How Has This Been Tested?

This has only been tested locally. You can see in the screenshot the default behavior and after changing the foreground color to '15' in my .bashrc.

Screenshots (if appropriate):

image

Types of changes

Checklist:

kmcfate commented 8 months ago

CI failures are not due to the change.