Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
neofetch
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
neofetch
Commits
66be054f
Commit
66be054f
authored
Dec 10, 2016
by
Muhammad Herdiansyah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Colors: use start++ instead of adding it manually after case
parent
de911805
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
neofetch
neofetch
+1
-2
No files found.
neofetch
View file @
66be054f
...
@@ -1856,13 +1856,12 @@ get_cols() {
...
@@ -1856,13 +1856,12 @@ get_cols() {
block_width="
${
block_width
// /█
}
"
block_width="
${
block_width
// /█
}
"
# Generate the string.
# Generate the string.
for ((start; start<=end;
i
++)); do
for ((start; start<=end;
start
++)); do
case "
$start
" in
case "
$start
" in
[0-6]) blocks+="
${
reset
}
\0
33[3
${
start
}
m
\0
33[4
${
start
}
m
${
block_width
}
" ;;
[0-6]) blocks+="
${
reset
}
\0
33[3
${
start
}
m
\0
33[4
${
start
}
m
${
block_width
}
" ;;
7) blocks+="
${
reset
}
\0
33[3
${
start
}
m
\0
33[4
${
start
}
m
${
block_width
}
" ;;
7) blocks+="
${
reset
}
\0
33[3
${
start
}
m
\0
33[4
${
start
}
m
${
block_width
}
" ;;
*) blocks2+="
\0
33[38
;
5
;
${
start
}
m
\0
33[48
;
5
;
${
start
}
m
${
block_width
}
" ;;
*) blocks2+="
\0
33[38
;
5
;
${
start
}
m
\0
33[48
;
5
;
${
start
}
m
${
block_width
}
" ;;
esac
esac
start="
$((
start+
=
1
))
"
done
done
# Convert height into spaces.
# Convert height into spaces.
...
...
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