1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-24 16:11:57 +00:00

Improve colors preview one-liner (#554)

* Improve colors preview one-liner

* Show colored numbers next to background
This commit is contained in:
Cameron Steffen 2020-03-07 02:12:28 -06:00 committed by GitHub
parent 7306efb94b
commit 054d9a6cd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -849,7 +849,7 @@ 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:
```zsh
for i in {0..255}; do print -Pn "%K{$i} %k%F{$i}${(l:3::0:)i}%f " ${${(M)$((i%8)):#7}:+$'\n'}; done
for i in {0..255}; do print -Pn "%K{$i} %k%F{$i}${(l:3::0:)i}%f " ${${(M)$((i%6)):#3}:+$'\n'}; done
```
### Why does Powerlevel10k spawn extra processes?