From 29b15cdb41929e7c6fcc8a1117a13eb78673dcd4 Mon Sep 17 00:00:00 2001 From: Aurel Feer Date: Tue, 3 Dec 2024 15:00:24 +0100 Subject: [PATCH] make tmux attach to existing session on login --- bash/.bash_profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash/.bash_profile b/bash/.bash_profile index e26b5eb..151d743 100755 --- a/bash/.bash_profile +++ b/bash/.bash_profile @@ -10,6 +10,6 @@ export PATH="$PATH":$HOME/.local/bin alias ls='ls -AFh --color' alias vim=nvim if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then - tmux && exit + tmux new-session -A && exit fi neofetch