1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2025-12-07 16:00:41 +01: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:
Robby Russell
2013-12-03 00:18:17 -08:00

View File

@@ -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
}