Reattach tmux + headless install
This commit is contained in:
4
.bashrc
4
.bashrc
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user