soyuka / tmux-current-pane-hostname

Tmux plugin that enables displaying hostname and user of the current pane in your status bar.
MIT License
76 stars 23 forks source link

Add pane_ssh_connected conditional variable #10

Closed SimonLammer closed 6 years ago

SimonLammer commented 6 years ago

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.

SimonLammer commented 6 years ago

This implements #9.

soyuka commented 6 years ago

Really nice, tyvm!