mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-21 11:50:07 +00:00
docs: mention truecolor
This commit is contained in:
parent
8fefef2285
commit
ab6a863e23
1 changed files with 8 additions and 1 deletions
|
@ -1322,12 +1322,19 @@ terminals. Many terminals also support customization of these colors through col
|
|||
|
||||
Type `source ~/.p10k.zsh` to apply your changes to the current Zsh session.
|
||||
|
||||
To see how different colors look in your terminal, run the following command:
|
||||
To see how different numbered colors look in your terminal, run the following command:
|
||||
|
||||
```zsh
|
||||
for i in {0..255}; do print -Pn "%K{$i} %k%F{$i}${(l:3::0:)i}%f " ${${(M)$((i%6)):#3}:+$'\n'}; done
|
||||
```
|
||||
|
||||
If your terminal supports truecolor, you can use 24-bit colors in the `#RRGGBB` format in addition
|
||||
to the numbered colors.
|
||||
|
||||
```zsh
|
||||
typeset -g POWERLEVEL9K_TIME_FOREGROUND='#FF0000'
|
||||
```
|
||||
|
||||
*Related:*
|
||||
- [Directory is difficult to see in prompt when using Rainbow style.](
|
||||
#directory-is-difficult-to-see-in-prompt-when-using-rainbow-style)
|
||||
|
|
Loading…
Reference in a new issue