fix remote session detection

This commit is contained in:
Tobias Manske 2018-07-10 20:13:11 +02:00
parent b86976f96f
commit 767f845427
No known key found for this signature in database
GPG Key ID: 978D99F12D4E041F

View File

@ -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