Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 3ce5f4c5434f18f27f46d17ed9f83a95 > files > 9

tmux-0.9-1mdv2010.0.i586.rpm

#!/bin/sh -x

[ ! -z "$TMUX" ] && exit

# I alias this script to "session" in .profile and use it to reconnect to
# the main session (0) on my main tmux server.

TMUX="tmux -dLmain"

$TMUX has -t0 2>/dev/null || $TMUX -qf ~/.tmux.conf.main start
exec $TMUX attach -d -t0