Skip to content

Instantly share code, notes, and snippets.

@user21944
Created June 2, 2021 19:01
Show Gist options
  • Save user21944/c5270d0814b09f1dbe2a6362ea24b67b to your computer and use it in GitHub Desktop.
Save user21944/c5270d0814b09f1dbe2a6362ea24b67b to your computer and use it in GitHub Desktop.
Patch pfetch to not print a newline after the palette display.
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