diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 595ec78..9521126 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -142,4 +142,8 @@ source /usr/share/doc/pkgfile/command-not-found.zsh # Load zsh-syntax-highlighting; should be last. source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null +if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then + tmux attack-session -t $USER || tmux new-session -s $USER +fi + pfetch