From e18b223d6e458eb2e9976e890855fe3f0958cb95 Mon Sep 17 00:00:00 2001 From: eKa Date: Thu, 19 Sep 2019 12:00:36 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20'tmux/local.conf'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tmux/local.conf | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tmux/local.conf b/tmux/local.conf index 689babd..87cd7a9 100644 --- a/tmux/local.conf +++ b/tmux/local.conf @@ -313,8 +313,11 @@ set -g @open-S 'https://www.google.com/search?q=' #if-shell 'test -n "$SSH_CLIENT"' \ # 'source-file ~/.dots/tmux/remote.conf' -set-hook -g session-created "if-shell 'test -n \"$SSH_CONNECTION\"' 'set status-position bottom' 'set -u status-position'" -set-hook -g client-attached "if-shell 'test -n \"$SSH_CONNECTION\"' 'set status-position bottom' 'set -u status-position'" +#set-hook -g session-created "if-shell 'test -n \"$SSH_CONNECTION\"' 'set status-position bottom' 'set -u status-position'" +#set-hook -g client-attached "if-shell 'test -n \"$SSH_CONNECTION\"' 'set status-position bottom' 'set -u status-position'" + +set-hook -g client-attached 'run ~/.dots/tmux/utils/session-type.sh' +set-hook -g session-created 'run ~/.dots/tmux/utils/session-type.sh' # We want to have single prefix key "C-a", usable both for local and remote session # we don't want to "C-a" + "a" approach either