tmux/examples/nicm-start-tmux.sh

33 lines
771 B
Bash
Raw Normal View History

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