From 767f845427a7ed38c67ff394a11a7b0f1f507bd5 Mon Sep 17 00:00:00 2001 From: Tobias Manske Date: Tue, 10 Jul 2018 20:13:11 +0200 Subject: [PATCH] fix remote session detection --- tmux/tmux.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmux/tmux.conf b/tmux/tmux.conf index 2e8d1f6..bd65a1d 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -362,7 +362,7 @@ set -g @sidebar-tree-command 'tree -C' # ============================================== # Session is considered to be remote when we ssh into host -if-shell 'test -n "$SSH_CLIENT"' \ +if-shell -b '[ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]' \ 'source-file ~/.tmux/tmux.remote.conf' # We want to have single prefix key "C-a", usable both for local and remote session