mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-17 09:16:11 +03:00
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:
@ -103,6 +103,7 @@ if [[ "$GHOSTTY_SHELL_FEATURES" == *"sudo"* && -n "$TERMINFO" ]]; then
|
|||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# SSH
|
||||||
if [[ -n "$GHOSTTY_SSH_INTEGRATION" ]]; then
|
if [[ -n "$GHOSTTY_SSH_INTEGRATION" ]]; then
|
||||||
# Wrap `ssh` command to provide Ghostty SSH integration.
|
# Wrap `ssh` command to provide Ghostty SSH integration.
|
||||||
#
|
#
|
||||||
@ -190,7 +191,6 @@ if [[ -n "$GHOSTTY_SSH_INTEGRATION" ]]; then
|
|||||||
# Fallback to basic integration
|
# Fallback to basic integration
|
||||||
_ghostty_ssh_basic "$@"
|
_ghostty_ssh_basic "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Import bash-preexec, safe to do multiple times
|
# Import bash-preexec, safe to do multiple times
|
||||||
@ -258,7 +258,7 @@ function __ghostty_preexec() {
|
|||||||
|
|
||||||
# Title (current command)
|
# Title (current command)
|
||||||
if [[ -n $cmd && "$GHOSTTY_SHELL_FEATURES" == *"title"* ]]; then
|
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
|
fi
|
||||||
|
|
||||||
# End of input, start of output.
|
# End of input, start of output.
|
||||||
|
Reference in New Issue
Block a user