refactor: simplify ssh integration environment variable checks

This commit is contained in:
Jason Rayne
2025-06-16 09:53:22 -07:00
parent 34af3ffbaf
commit 2babdb458f
4 changed files with 5 additions and 5 deletions

View File

@@ -245,7 +245,7 @@ _ghostty_deferred_init() {
fi
# SSH
if [[ -n "$GHOSTTY_SSH_INTEGRATION" && "$GHOSTTY_SSH_INTEGRATION" != "off" ]]; then
if [[ -n "$GHOSTTY_SSH_INTEGRATION" ]]; then
# Wrap `ssh` command to provide Ghostty SSH integration
ssh() {
case "$GHOSTTY_SSH_INTEGRATION" in