From 741ef7f1152806a60952b368586d1dc4ed783be8 Mon Sep 17 00:00:00 2001 From: pagedown Date: Wed, 23 Feb 2022 14:09:13 +0800 Subject: [PATCH] Remove new lines with bash --- shell-integration/bash/kitty.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell-integration/bash/kitty.bash b/shell-integration/bash/kitty.bash index 6b2be52dd..e72ea2e41 100644 --- a/shell-integration/bash/kitty.bash +++ b/shell-integration/bash/kitty.bash @@ -20,8 +20,8 @@ _ksi_main() { _ksi_debug_print() { # print a line to STDOUT of parent kitty process - builtin local b=$(builtin command base64 <<< "${@}" | tr -d \\n) - builtin printf "\eP@kitty-print|%s\e\\" "$b" + builtin local b=$(builtin command base64 <<< "${@}") + builtin printf "\eP@kitty-print|%s\e\\" "${b//\\n}" # " }