Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Added the spectrum_bls function, which prints all 256 colors set as the background. #2176

Merged
merged 1 commit into from

2 participants

@proteansec

We can easily see which color we want to set when changing the PS1 shell variable,
since the colors are more distinctive.

This can be used by executing the following command in command-line:

spectrum_bls

dejan 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.
f057737
@robbyrussell robbyrussell merged commit f0a7adc into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 16, 2013
  1. Added the spectrum_bls function, which prints all 256 colors set as the

    dejan authored
    background.
    
    We can easily see which color we want to set when changing the PS1 shell variable,
    since the colors are more distinctive.
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/spectrum.zsh
View
7 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
+}
Something went wrong with that request. Please try again.