Merge pull request #160 from tactlessfish/fix-default-col2

Fix default PF_COL2, closes #147
This commit is contained in:
dylan 2021-10-06 07:31:18 +03:00 committed by GitHub
commit c574b14569
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ PF_COL1=4
# Color of info data: # Color of info data:
# Default: unset (auto) # Default: unset (auto)
# Valid: 0-9 # Valid: 0-9
PF_COL2=7 PF_COL2=9
# Color of title data: # Color of title data:
# Default: unset (auto) # Default: unset (auto)

2
pfetch
View File

@ -150,7 +150,7 @@ log() {
# Print the info data, color it and strip all leading whitespace # Print the info data, color it and strip all leading whitespace
# from the string. # from the string.
esc_p SGR "3${PF_COL2-7}" esc_p SGR "3${PF_COL2-9}"
printf '%s' "$info" printf '%s' "$info"
esc_p SGR 0 esc_p SGR 0
printf '\n' printf '\n'