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