Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
0bda651d
Commit
0bda651d
authored
Jun 08, 2015
by
Andrew Janke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the spectrum_ls implementation in spectrum.zsh
parent
4224c2a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spectrum.zsh
lib/spectrum.zsh
+2
-2
No files found.
lib/spectrum.zsh
View file @
0bda651d
...
@@ -25,13 +25,13 @@ ZSH_SPECTRUM_TEXT=${ZSH_SPECTRUM_TEXT:-Arma virumque cano Troiae qui primus ab o
...
@@ -25,13 +25,13 @@ ZSH_SPECTRUM_TEXT=${ZSH_SPECTRUM_TEXT:-Arma virumque cano Troiae qui primus ab o
# Show all 256 colors with color number
# Show all 256 colors with color number
function
spectrum_ls
()
{
function
spectrum_ls
()
{
for
code
in
{
000..255
}
;
do
for
code
in
{
000..255
}
;
do
print
-P
--
"
$code
: %
F{
$code
}
$ZSH_SPECTRUM_TEXT
%f
"
print
-P
--
"
$code
: %
{
$FG
[
$code
]%}
$ZSH_SPECTRUM_TEXT
%{
$reset_color
%}
"
done
done
}
}
# Show all 256 colors where the background is set to specific color
# Show all 256 colors where the background is set to specific color
function
spectrum_bls
()
{
function
spectrum_bls
()
{
for
code
in
{
000..255
}
;
do
for
code
in
{
000..255
}
;
do
print
-P
--
"
$
BG
[
$code
]
$code
:
$ZSH_SPECTRUM_TEXT
%{
$reset_color
%}"
print
-P
--
"
$
code
: %{
$BG
[
$code
]%}
$ZSH_SPECTRUM_TEXT
%{
$reset_color
%}"
done
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