From 088dea8fd4d2b58eb6916ead9b72f493a37e20f2 Mon Sep 17 00:00:00 2001 From: Christian Baer Date: Fri, 3 Jul 2020 16:41:44 +0200 Subject: [PATCH] Fixed test for nested tmux over ssh --- .zsh/.zlogin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zsh/.zlogin b/.zsh/.zlogin index 13e90d8..e92aa8f 100644 --- a/.zsh/.zlogin +++ b/.zsh/.zlogin @@ -31,7 +31,7 @@ done ) ## If tmux session is nested, source modified config (e.g. for overwriting styles) -if [ -n "$TMUX" ]; then +if [[ "${SSH_CONNECTION}" ]] && [[ "${TMUX}" ]]; then tmux source-file ~/.tmux.nested.conf fi