From 52a0dd8ddb5163211dd7e3835513937a6b856f2b Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Fri, 1 Mar 2019 17:16:38 +0100 Subject: [Tmux] Set different color for ssh sessions --- tmux/.tmux.conf | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tmux/.tmux.conf') diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 7df3a18..3775965 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -21,6 +21,8 @@ set -g default-terminal "screen-256color" set -g pane-border-status off # Alternative: top/bottom/... set -g pane-border-format "#{pane_current_command}" +set-hook -g session-created "if-shell '[ -n \""'$SSH_CONNECTION'"\" ]' 'set status-bg \"#aa4444\"'" + PILOT_IGNORE= PILOT_BOUNDARY=ignore PILOT_MODE=wintab -- cgit v1.2.3