From 7edd9488439ad636bf00a033c3971f4f5f01d4c2 Mon Sep 17 00:00:00 2001 From: Kaede Akino Date: Sun, 4 Oct 2026 17:21:02 +0800 Subject: [PATCH] fix(ssh): restore leading space in Bash integration command --- Frameworks/TermindRemoteInfrastructure/SSH/SSHPTYChannel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Frameworks/TermindRemoteInfrastructure/SSH/SSHPTYChannel.swift b/Frameworks/TermindRemoteInfrastructure/SSH/SSHPTYChannel.swift index a8099b1b..2857dd66 100644 --- a/Frameworks/TermindRemoteInfrastructure/SSH/SSHPTYChannel.swift +++ b/Frameworks/TermindRemoteInfrastructure/SSH/SSHPTYChannel.swift @@ -454,7 +454,7 @@ public nonisolated struct RemoteShellIntegrationBootstrap: Sendable { // the saved user-command status only after those hooks finish. command = [ - "if [[ \"${__termind_integration_token:-}\" != \"\(token)\" ]]; then", + " if [[ \"${__termind_integration_token:-}\" != \"\(token)\" ]]; then", "__termind_integration_token=\"\(token)\";", "__termind_encode() { builtin local s=\"$1\" out= c hex i LC_ALL=C; for ((i=0;i<${#s};i++)); do c=${s:i:1}; case \"$c\" in [a-zA-Z0-9.~_/-]) out+=\"$c\";; *) builtin printf -v hex '%%%02X' \"'$c\"; out+=\"$hex\";; esac; done; builtin printf %s \"$out\"; };", "__termind_report_cwd() { builtin printf '\\e]7;file://localhost%s\\a' \"$(__termind_encode \"$PWD\")\"; };",