2007-10-23 12:52:53 +02:00
|
|
|
#!/bin/sh -x
|
|
|
|
|
|
|
|
[ ! -z "$TMUX" ] && exit
|
2007-10-19 19:15:29 +02:00
|
|
|
|
|
|
|
SOCKET=/tmp/tmux-1000-main
|
|
|
|
SESSION=natasha-main
|
|
|
|
|
|
|
|
TMUX="tmux -S $SOCKET"
|
|
|
|
|
2007-10-25 19:44:25 +02:00
|
|
|
if ! $TMUX -s $SESSION has 2>/dev/null; then
|
2007-10-19 19:15:29 +02:00
|
|
|
$TMUX new -d -s $SESSION -nyelena 'exec ssh yelena' # 0
|
2007-10-23 12:52:53 +02:00
|
|
|
|
|
|
|
$TMUX set default-command "$SHELL -l"
|
|
|
|
|
2007-10-19 19:15:29 +02:00
|
|
|
$TMUX -s $SESSION neww -d -ntodo 'exec emacs ~/TODO' # 1
|
2007-10-23 12:52:53 +02:00
|
|
|
$TMUX -s $SESSION neww -d -nncmpc # 2
|
2007-10-19 19:15:29 +02:00
|
|
|
$TMUX -s $SESSION neww -d # 3
|
|
|
|
$TMUX -s $SESSION neww -d # 4
|
|
|
|
$TMUX -s $SESSION neww -d # 5
|
|
|
|
$TMUX -s $SESSION neww -d # 6
|
|
|
|
$TMUX -s $SESSION neww -d # 7
|
|
|
|
$TMUX -s $SESSION neww -d # 8
|
|
|
|
$TMUX -s $SESSION neww -d # 9
|
|
|
|
|
|
|
|
$TMUX set prefix ^A
|
2007-10-19 19:23:43 +02:00
|
|
|
$TMUX unbind ^B
|
|
|
|
$TMUX bind ^A send-prefix
|
|
|
|
|
2007-10-19 19:15:29 +02:00
|
|
|
$TMUX set bell-action none
|
|
|
|
fi
|
2007-10-25 19:44:25 +02:00
|
|
|
|
2007-10-26 15:26:55 +02:00
|
|
|
$TMUX -s $SESSION attach -d
|