5 lines
198 B
Bash
5 lines
198 B
Bash
if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
|
|
tmux a -t default || exec tmux new -s default && exit;
|
|
fi
|
|
|