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