Workaround for base64 on linux inserting line breaks by default

This commit is contained in:
Kovid Goyal 2021-07-14 22:16:36 +05:30
parent 934318adb1
commit d1015de700
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -13,7 +13,7 @@ args=($@)
function debug() {
# print a line to STDOUT of parent kitty process
local b=$(printf "%s\n" "$1" | base64)
local b=$(printf "%s\n" "$1" | base64 | tr -d \\n)
printf "\eP@kitty-print|%s\e\\" "$b"
}