mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
Added the spectrum_bls function, which prints all 256 colors set as the
background. We can easily see which color we want to set when changing the PS1 shell variable, since the colors are more distinctive.
This commit is contained in:
parent
dd3f92fe97
commit
7a1717ab6d
1 changed files with 7 additions and 0 deletions
|
|
@ -26,3 +26,10 @@ function spectrum_ls() {
|
|||
done
|
||||
}
|
||||
|
||||
# Show all 256 colors where the background is set to specific color
|
||||
function spectrum_bls() {
|
||||
for code in {000..255}; do
|
||||
((cc = code + 1))
|
||||
print -P -- "$BG[$code]$code: Test %{$reset_color%}"
|
||||
done
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue