From 3ffab9c1aa47721bae12d3b82381d7e052933b0e Mon Sep 17 00:00:00 2001 From: eKa Date: Thu, 19 Sep 2019 11:56:03 +0000 Subject: [PATCH] =?UTF-8?q?=D0=90=D0=B2=D1=82=D0=BE-=D0=BF=D0=B5=D1=80?= =?UTF-8?q?=D0=B5=D0=BA=D0=BB=D1=8E=D1=87=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=BB=D0=BE=D0=B6=D0=B5=D0=BD=D0=B8=D1=8F=20=D1=81=D1=82?= =?UTF-8?q?=D0=B0=D1=82=D1=83=D1=81-=D0=B1=D0=B0=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tmux/local.conf | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tmux/local.conf b/tmux/local.conf index fc21809..689babd 100644 --- a/tmux/local.conf +++ b/tmux/local.conf @@ -281,6 +281,7 @@ set -g update-environment \ SSH_AUTH_SOCK\ SSH_AGENT_PID\ SSH_CONNECTION\ + SSH_CLIENT\ SSH_TTY\ WINDOWID\ XAUTHORITY" @@ -309,8 +310,11 @@ set -g @open-S 'https://www.google.com/search?q=' # ============================================== # Session is considered to be remote when we ssh into host -if-shell 'test -n "$SSH_CLIENT"' \ - 'source-file ~/.dots/tmux/remote.conf' +#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'" # 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 @@ -345,5 +349,5 @@ run '~/.dots/tmux/plugins/tmux-open/open.tmux' run '~/.dots/tmux/plugins/tmux-sidebar/sidebar.tmux' run '~/.dots/tmux/plugins/tmux-yank/yank.tmux' -run '~/.dots/tmux/plugins/tmux-ressurect/resurrect.tmux' -run '~/.dots/tmux/plugins/tmux-continuum/continuum.tmux' +#run '~/.dots/tmux/plugins/tmux-ressurect/resurrect.tmux' +#run '~/.dots/tmux/plugins/tmux-continuum/continuum.tmux'