fix remote session detection
This commit is contained in:
parent
b86976f96f
commit
767f845427
@ -362,7 +362,7 @@ set -g @sidebar-tree-command 'tree -C'
|
|||||||
# ==============================================
|
# ==============================================
|
||||||
|
|
||||||
# Session is considered to be remote when we ssh into host
|
# 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'
|
'source-file ~/.tmux/tmux.remote.conf'
|
||||||
|
|
||||||
# We want to have single prefix key "C-a", usable both for local and remote session
|
# We want to have single prefix key "C-a", usable both for local and remote session
|
||||||
|
Loading…
Reference in New Issue
Block a user