Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation on coloring the themes #1864

Closed
jafber opened this issue Apr 5, 2021 · 3 comments
Closed

Documentation on coloring the themes #1864

jafber opened this issue Apr 5, 2021 · 3 comments

Comments

@jafber
Copy link

jafber commented Apr 5, 2021

I am looking at the powerline theme right now. I know I can configure it's colors, for example by doing export USER_INFO_THEME_PROMPT_COLOR={some integer value}. I have tried out quite a few values, but the outcome is seemingly random - I can't for the life of me figure out how they're encoded. The official documentation does not even mention coloring.

Please explain, I'm getting desperate.

@davidpfarrell
Copy link
Contributor

Greetings!

As I recall powerline supports standard 256 terminal colors.

What I think you'll want is a way to review which what colors each value renders in your terminal.
I googled "print 256 colors terminal" and found this page:

The answer I went with uses this gist:

Here's what the script looks like in my terminal:
Screen Shot 2021-04-05 at 10 27 59 AM

*NOTE: I have modified values 0-15 to represent the Solarized Color Scheme

You should find that the color/numbers correspond to those used in the powerline themes.

Hope that helps - lemme know how it goes!

@jafber
Copy link
Author

jafber commented Apr 6, 2021

Thanks, that cleared it up :]

@NoahGorny
Copy link
Member

Great answer @davidpfarrell !
I am closing this issue now, @CheeseCrustery feel free to reopen if you need any help

Happy bashing 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants