tmate/examples/n-marriott.sh

12 lines
271 B
Bash
Raw Normal View History

2008-06-02 22:52:43 +02:00
#!/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.
2009-04-20 21:25:58 +02:00
TMUX="tmux -dLmain"
2008-06-02 22:52:43 +02:00
2009-04-20 21:25:58 +02:00
$TMUX has -t0 2>/dev/null || $TMUX -qf ~/.tmux.conf.main start
exec $TMUX attach -d -t0