From bf401ee0487508170e5fdeb069b68c22cb98a910 Mon Sep 17 00:00:00 2001 From: John Mertz Date: Wed, 2 Oct 2024 17:41:58 -0600 Subject: [PATCH] Ignore undeclared $SSH_CONNECTION --- bash/prompt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash/prompt.sh b/bash/prompt.sh index a1f70c636..fbefb05c7 100755 --- a/bash/prompt.sh +++ b/bash/prompt.sh @@ -76,7 +76,7 @@ if [[ -n $ALACRITTY_WINDOW_ID ]]; then # The last 4 bits are always 0, so drop them SEP=$(($ALACRITTY_WINDOW_ID >> 4)) # SSH connections can use PID stored in SSH_CONNECTION -else +elif [[ -n $SSH_CONNECTION ]]; then # Seems to always be even, so drop 1 bit SEP=$(( $(echo $SSH_CONNECTION | cut -d ' ' -f 2) >> 1 )) fi