make tmux attach to existing session on login

This commit is contained in:
Aurel Feer 2024-12-03 15:00:24 +01:00
parent 9ac6b5d14c
commit 29b15cdb41

View File

@ -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