From 41635acb31a93425b53462b3259fb8efd7348362 Mon Sep 17 00:00:00 2001 From: Kaholaz Date: Wed, 8 Feb 2023 15:21:07 +0100 Subject: [PATCH] Add Tmux autoconnect --- .zshrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index af79b38..aae0f3e 100644 --- a/.zshrc +++ b/.zshrc @@ -102,5 +102,9 @@ fi # Example aliases # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" - source .aliases + +# Attach to a tmux session on startup +if [ -z "$TMUX" ]; then + tmux attach -t default || tmux new -s default +fi