diff options
Diffstat (limited to 'raspberry/.zlogin')
-rw-r--r-- | raspberry/.zlogin | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/raspberry/.zlogin b/raspberry/.zlogin index 227f78e..729b420 100644 --- a/raspberry/.zlogin +++ b/raspberry/.zlogin @@ -1 +1,8 @@ -[ -z "$TMUX" ] && tmux attach -t default || tmuxinator start default +if [ -n "$SSH_CONNECTION" ]; then + # If we are logged in via SSH, automatically attach to master session + [ -z "$TMUX" ] && (tmux attach -t master || tmux new -s master) +else + # If we are logged in directly (not via SSH) + # create the session which will be displayed on TV + tmuxinator start display +fi |