Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
cbaa97d8
Commit
cbaa97d8
authored
Jul 23, 2011
by
Benjamin Boudreau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add utility method to spectrum
parent
1eb52d43
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
spectrum.zsh
lib/spectrum.zsh
+8
-0
No files found.
lib/spectrum.zsh
View file @
cbaa97d8
...
@@ -18,3 +18,11 @@ for color in {000..255}; do
...
@@ -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
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment