The variable can be used in tmux's status bar like so:
"#{pane_ssh_connected}"
This will print 1 if the currently selected pane has an active ssh
connection, allowing further constructs like
"#{?#{pane_ssh_connected},ssh,no-ssh}", which evaluates to "ssh" if the
currently selected pane has an active ssh connection and to "no-ssh"
otherwise.
The variable can be used in tmux's status bar like so: "#{pane_ssh_connected}" This will print 1 if the currently selected pane has an active ssh connection, allowing further constructs like "#{?#{pane_ssh_connected},ssh,no-ssh}", which evaluates to "ssh" if the currently selected pane has an active ssh connection and to "no-ssh" otherwise.