5 lines
185 B
Bash
5 lines
185 B
Bash
if [ -z "$TMUX" ]; then
|
|
if which tmux >/dev/null 2>&1; then
|
|
tmux -q has-session && exec tmux attach-session -d || exec tmux new-session -c ${TMUX_SHELL:-/bin/sh}
|
|
fi
|
|
fi
|