bin-utils/tmux_rattach.sh

11 lines
149 B
Bash
Executable File

#!/bin/sh
# Crée ou attache une session tmux
export TERM="xterm-256color"
if tmux has 2> /dev/null
then
exec tmux attach
else
exec tmux new
fi