summaryrefslogtreecommitdiff
path: root/lib/spectrum.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/spectrum.zsh')
-rw-r--r--lib/spectrum.zsh7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/spectrum.zsh b/lib/spectrum.zsh
index 2fdf537ef..166c942fb 100644
--- a/lib/spectrum.zsh
+++ b/lib/spectrum.zsh
@@ -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
+}