dl.turnsys.net/profiled-tmux.sh

5 lines
198 B
Bash
Raw Permalink Normal View History

2022-01-20 00:48:06 +00:00
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