bash: preserve mixed indentation in SSH integration changes

Preserves existing mixed indentation in ghostty.bash to minimize
diff noise per maintainer feedback.
This commit is contained in:
Jason Rayne
2025-06-16 13:16:35 -07:00
parent 2babdb458f
commit 842ced9212

View File

@ -103,6 +103,7 @@ if [[ "$GHOSTTY_SHELL_FEATURES" == *"sudo"* && -n "$TERMINFO" ]]; then
}
fi
# SSH
if [[ -n "$GHOSTTY_SSH_INTEGRATION" ]]; then
# Wrap `ssh` command to provide Ghostty SSH integration.
#
@ -190,7 +191,6 @@ if [[ -n "$GHOSTTY_SSH_INTEGRATION" ]]; then
# Fallback to basic integration
_ghostty_ssh_basic "$@"
}
fi
# Import bash-preexec, safe to do multiple times
@ -258,7 +258,7 @@ function __ghostty_preexec() {
# Title (current command)
if [[ -n $cmd && "$GHOSTTY_SHELL_FEATURES" == *"title"* ]]; then
builtin printf "\e]2;%s\a" "${cmd//[[:cntrl:]]/}"
builtin printf "\e]2;%s\a" "${cmd//[[:cntrl:]]}"
fi
# End of input, start of output.