mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-24 14:50:07 +00:00
Merge pull request #2176 from dejanlukan/spectrum
Added the spectrum_bls function, which prints all 256 colors set as the background.
This commit is contained in:
commit
f0a7adcd3d
1 changed files with 7 additions and 0 deletions
|
@ -26,3 +26,10 @@ function spectrum_ls() {
|
||||||
done
|
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…
Reference in a new issue