Reattach tmux + headless install

This commit is contained in:
2025-09-22 10:16:55 +00:00
parent 432bd834d5
commit 5b747f1c9f
2 changed files with 41 additions and 24 deletions

View File

@@ -185,5 +185,7 @@ export ompPath="$HOME/.config/oh-my-posh/theme.omp.json"
### Start oh my posh
eval "$(oh-my-posh init bash --config $ompPath)"
### Start tmux if not already in a session
[[ -z "$TMUX" ]] && exec tmux
if [[ -z "$TMUX" ]]; then
tmux attach || tmux new
fi
. "$HOME/.cargo/env"