Powerlevel9k / powerlevel9k

Powerlevel9k was a tool for building a beautiful and highly functional CLI, customized for you. P9k had a substantial impact on CLI UX, and its legacy is now continued by P10k.
https://github.com/romkatv/powerlevel10k
MIT License
13.47k stars 947 forks source link

[DOCS] VCS colour-customisation example is incorrect #1225

Closed protist closed 5 years ago

protist commented 5 years ago

Describe Your Issue

The documentation for "Segment Color Customization" gives the example:

POWERLEVEL9K_VCS_FOREGROUND='021' # Dark blue

However, this didn't work. This old changelog suggests that it is no longer used. I also had a similar experience with POWERLEVEL9K_VCS_BACKGROUND.

Have you tried to debug or fix it?

Yes, using the "advanced" POWERLEVEL9K_VCS_{CLEAN,UNTRACKED,MODIFIED}_{FORE,BACK}GROUND worked instead. FWIW I found the wording in the documentation confusing:

# Advanced `vcs` color customization

It implies there is a "basic" version as well, which appears to be deprecated as above.

Environment Information

This information will help us understand your configuration.

dritter commented 5 years ago

Great catch @protist !

I modified the wiki a bit, and

The color code mistake must there been for ages.. Thanks.