aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2024-01-22 20:28:28 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2024-01-22 20:28:28 +0300
commitab6a863e231b1d85c89e152165719bfe826bc449 (patch)
tree140054ff9aae70959913fdd7dacfb0f03331e269
parent8fefef228571c08ce8074d42304adec3b0876819 (diff)
docs: mention truecolor
-rw-r--r--README.md9
1 files changed, 8 insertions, 1 deletions
diff --git a/README.md b/README.md
index 2aba3755..69dafff9 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)