Merge branch 'master' of github.com:dylanaraps/neofetch
This commit is contained in:
commit
696fc03689
|
@ -1,5 +1,6 @@
|
||||||
## Contributors
|
## Contributors
|
||||||
|
|
||||||
|
- **[@konimex](https://github.com/konimex)**
|
||||||
|
|
||||||
## IRC
|
## IRC
|
||||||
|
|
||||||
|
@ -24,6 +25,9 @@ Neofetch now has an irc channel at `##neofetch` on Freenode. If you have any que
|
||||||
- Warn the user if `df` isn't installed.
|
- Warn the user if `df` isn't installed.
|
||||||
- Fixed broken output if `df` wasn't installed but the function was enabled.
|
- Fixed broken output if `df` wasn't installed but the function was enabled.
|
||||||
|
|
||||||
|
**Color Blocks**<br \>
|
||||||
|
|
||||||
|
- Use start++ instead of adding it manually after case. **[@konimex](https://github.com/konimex)**
|
||||||
|
|
||||||
## Images
|
## Images
|
||||||
|
|
||||||
|
|
3
neofetch
3
neofetch
|
@ -1859,13 +1859,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}\033[3${start}m\033[4${start}m${block_width}" ;;
|
[0-6]) blocks+="${reset}\033[3${start}m\033[4${start}m${block_width}" ;;
|
||||||
7) blocks+="${reset}\033[3${start}m\033[4${start}m${block_width}" ;;
|
7) blocks+="${reset}\033[3${start}m\033[4${start}m${block_width}" ;;
|
||||||
*) blocks2+="\033[38;5;${start}m\033[48;5;${start}m${block_width}" ;;
|
*) blocks2+="\033[38;5;${start}m\033[48;5;${start}m${block_width}" ;;
|
||||||
esac
|
esac
|
||||||
start="$((start+=1))"
|
|
||||||
done
|
done
|
||||||
|
|
||||||
# Convert height into spaces.
|
# Convert height into spaces.
|
||||||
|
|
Reference in New Issue