1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-22 04:10:07 +00:00

expand dir color faq

This commit is contained in:
romkatv 2020-05-17 08:27:40 +02:00
parent 6c83ace41c
commit 48c6ff4701

View file

@ -1507,18 +1507,20 @@ This method of installation won't make anything slower or otherwise sub-par.
### Directory is difficult to see in prompt when using Rainbow style ### Directory is difficult to see in prompt when using Rainbow style
In Classic style the current working directory is shown with bright white white text on blue In Rainbow style the current working directory is shown with bright white text on blue background.
background. The white is fixed and always looks the same but the appearance of "blue" is defined The white is fixed and always looks the same but the appearance of "blue" is defined by your
by your terminal color palette. If it's very light, it's difficult to see white text on it. terminal color palette. If it's very light, it may be difficult to see white text on it.
There are several ways to fix this. There are several ways to fix this.
- Type `p10k configure` and choose a more readable prompt style. - Type `p10k configure` and choose a more readable prompt style.
- [Change terminal color palette](#change-the-color-palette-used-by-your-terminal). Try Tango Dark - [Change terminal color palette](#change-the-color-palette-used-by-your-terminal). Try Tango Dark
or Solarized Dark, or change just the "blue" color. or Solarized Dark, or change just the "blue" color.
- [Change directory background color](#set-colors-through-Powerlevel10k-configuration-parameters). - [Change directory background and/or foreground color](#set-colors-through-Powerlevel10k-configuration-parameters).
The parameter you are looking for is called `POWERLEVEL9K_DIR_BACKGROUND`. You can find it in The parameters you are looking for are called `POWERLEVEL9K_DIR_BACKGROUND`,
in `~/.p10k.zsh`. Uncomment it if it's commented out and try different values. `POWERLEVEL9K_DIR_FOREGROUND`, `POWERLEVEL9K_DIR_SHORTENED_FOREGROUND`,
`POWERLEVEL9K_DIR_ANCHOR_FOREGROUND` and `POWERLEVEL9K_DIR_ANCHOR_BOLD`. You can find them in
in `~/.p10k.zsh`.
### Horrific mess when resizing terminal window ### Horrific mess when resizing terminal window