Start TMUX automatically with the shell

This commit is contained in:
2024-09-23 23:51:28 +01:00
parent 9e12594e43
commit a45400b8e4
2 changed files with 36 additions and 2 deletions

View File

@@ -102,3 +102,10 @@ set completion-ignore-case On
export OFLAGS="--ozone-platform-hint=auto"
export PATH=$PATH:/home/trude/.local/bin
if [[ -z $TMUX ]]; then
tmux attach
if [[ $? == 1 ]]; then
tmux new -s main
fi
fi