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.46k stars 949 forks source link

Powerlevel9k Variables #1349

Open ramdhanymf opened 4 years ago

ramdhanymf commented 4 years ago

Hi, I would like to know, where can I see all the powerlevel9k variables list? In "Show Off Your Config", I see some configuration variables that aren't stated in the documentation page like "POWERLEVEL9K_VCS_CLEAN_FOREGROUND" and etc.

valdegrepo commented 4 years ago

Hello.

Please read carefully - https://github.com/Powerlevel9k/powerlevel9k#customizing-prompt-segments

Some segments such as host, status or vsc may have multiple states. Each variable looks like that:

POWERLEVEL9K_"segment_name"_"segment_state"_"BACKGROUND / FOREGROUND"="VALUE"

Here is couple examples:

Example of simple segment (without multiple states):

POWERLEVEL9K_OS_ICON_BACKGROUND="009"
POWERLEVEL9K_OS_ICON_FOREGROUND="015"

Example of complex segments (Yup, let's call em complex, lol)

POWERLEVEL9K_HOST_REMOTE_BACKGROUND="003"
POWERLEVEL9K_HOST_REMOTE_FOREGROUND="236"
POWERLEVEL9K_HOST_LOCAL_BACKGROUND="003"
POWERLEVEL9K_HOST_LOCAL_FOREGROUND="236"

Once again, all information is provided in readme.