diff --git a/zsh/.zshrc b/zsh/.zshrc index 143f438..e9c902b 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -1,11 +1,9 @@ # If connected over SSH and not already in tmux, start tmux. -if [[ -o interactive ]]; then - if [[ -n $SSH_TTY ]] && [[ -z $TMUX ]] && hash tmux &> /dev/null; then - if tmux has-session &> /dev/null; then - exec tmux attach - else - exec tmux - fi +if [[ -o interactive ]] && [[ -n $SSH_TTY ]] && [[ -z $TMUX ]] && hash tmux &> /dev/null; then + if tmux has-session &> /dev/null; then + exec tmux attach + else + exec tmux fi fi