mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
Made spectrum_{,b}ls wide.
This commit is contained in:
parent
6b3c953775
commit
e3eee60a7f
1 changed files with 8 additions and 5 deletions
|
|
@ -21,15 +21,18 @@ done
|
|||
|
||||
# Show all 256 colors with color number
|
||||
function spectrum_ls() {
|
||||
for code in {000..255}; do
|
||||
print -P -- "$code: %F{$code}Test%f"
|
||||
typeset -a colors
|
||||
for i in {000..255}; do
|
||||
colors+="%F{$i}███ Color $i ███%f "
|
||||
done
|
||||
print -P -c -- $colors
|
||||
}
|
||||
|
||||
# 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%}"
|
||||
typeset -a colors
|
||||
for i in {000..255}; do
|
||||
colors+="$BG[$i] Color $i %{$reset_color%} "
|
||||
done
|
||||
print -P -c -- $colors
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue