Created
June 2, 2021 19:01
-
-
Save user21944/c5270d0814b09f1dbe2a6362ea24b67b to your computer and use it in GitHub Desktop.
Patch pfetch to not print a newline after the palette display.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/pfetch b/pfetch | |
index 039a898..9d350a1 100755 | |
--- a/pfetch | |
+++ b/pfetch | |
@@ -1038,10 +1038,8 @@ get_palette() { | |
palette="$palette$e" | |
} | |
- # Print the palette with a new-line before and afterwards. | |
- printf '\n' >&6 | |
- log "$palette | |
- " " " >&6 | |
+ # Print the palette. | |
+ log "$palette" " " >&6 | |
} | |
get_ascii() { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment