From d7c73ec2ec477da03deaf973f0eafbfa0e0b3f73 Mon Sep 17 00:00:00 2001 From: Andrew Guschin Date: Wed, 14 Feb 2024 16:27:57 +0400 Subject: add tmux autostart to zshrc --- .zshrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.zshrc b/.zshrc index 74ea9dd..1464955 100644 --- a/.zshrc +++ b/.zshrc @@ -64,3 +64,7 @@ set_prompt() { set_prompt source $HOME/.zprofile + +if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then + exec tmux +fi -- cgit v1.2.3