From ab6a863e231b1d85c89e152165719bfe826bc449 Mon Sep 17 00:00:00 2001 From: Roman Perepelitsa Date: Mon, 22 Jan 2024 18:28:28 +0100 Subject: [PATCH] docs: mention truecolor --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2aba375..69dafff 100644 --- a/README.md +++ b/README.md @@ -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)