Files
PFVCluster/archive/provisioning/legacy/profiled-tmux.sh
T
2026-08-01 15:45:23 -05:00

6 lines
272 B
Bash

# shellcheck shell=bash disable=SC2148 # sourced .bashrc profile fragment
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