Commit f057737e authored by dejan's avatar dejan
Browse files

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.
parent c79e5a97
...@@ -26,3 +26,10 @@ function spectrum_ls() { ...@@ -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
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment