https://www.it1352.com/1873377.html

 

#!/bin/sh
if [ -n "$TMUX" ]; then
    case "$1" in
    prod_*)
        tmux selectp -P bg=red
    ;;
    esac
fi
ssh "$@"
tmux selectp -P default