oh-my-bash icon indicating copy to clipboard operation
oh-my-bash copied to clipboard

How to change foreground text color in powerline theme?

Open zhum opened this issue 2 years ago • 1 comments

How to change foreground text color in powerline theme? The code is somewhat complicated...

zhum avatar Aug 09 '22 13:08 zhum

Hi,

Looks like the themes are just prompt modifications. Looking at the code of powerline.theme.sh, it sources powerline.base.sh line 3.

In this file what we're interested in is:

- PS1 var (line 165)
- LEFT_PROMPT var (line 163)
- _omb_prompt_normal var (line 163)
- set_color function (line 6)

By looking at the definition of _omb_prompt_normal, it's just reset of your terminal colors that happens right after drawing the fancy prompt so you might be able to change your background and foreground color right in your terminal profile.

alexandre-julien avatar Jan 08 '23 06:01 alexandre-julien