mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-12 21:39:48 +01:00
Add utility method to spectrum
This commit is contained in:
parent
1eb52d4385
commit
cbaa97d8c3
1 changed files with 8 additions and 0 deletions
|
@ -18,3 +18,11 @@ for color in {000..255}; do
|
||||||
FG[$color]="%{[38;5;${color}m%}"
|
FG[$color]="%{[38;5;${color}m%}"
|
||||||
BG[$color]="%{[48;5;${color}m%}"
|
BG[$color]="%{[48;5;${color}m%}"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Show all 256 colors with color number
|
||||||
|
function spectrum_ls() {
|
||||||
|
for code in {000..255}; do
|
||||||
|
print -P -- "$code: %F{$code}Test%f"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue