mirror of
https://github.com/tmate-io/tmate.git
synced 2024-12-18 04:40:40 +01:00
12 lines
271 B
Bash
12 lines
271 B
Bash
#!/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
|