diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-11-16 21:38:00 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-11-16 21:38:00 +0000 |
commit | 85e4e820b606d2e8bbd71ebd5afc78468ef936be (patch) | |
tree | f18b79f7b27258764a61de960150b10c9d2c6555 /examples | |
parent | 6e0452459640b892e8fc2ea7435f5e847cc33967 (diff) |
Sync.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/nicm-start-tmux.sh | 43 |
1 files changed, 30 insertions, 13 deletions
diff --git a/examples/nicm-start-tmux.sh b/examples/nicm-start-tmux.sh index 7e5306e6..ab406249 100644 --- a/examples/nicm-start-tmux.sh +++ b/examples/nicm-start-tmux.sh @@ -3,30 +3,47 @@ [ ! -z "$TMUX" ] && exit SOCKET=/tmp/tmux-1000-main -SESSION=natasha-main TMUX="tmux -S $SOCKET" if ! $TMUX -s $SESSION has 2>/dev/null; then - $TMUX new -d -s $SESSION -nyelena 'exec ssh yelena' # 0 + # Session 0 + $TMUX new -d -s0 -nyelena 'exec ssh yelena' # 0 - $TMUX set default-command "$SHELL -l" + # This needs to be set before starting shells... + $TMUX set default-command "exec $SHELL -l" - $TMUX -s $SESSION neww -d -ntodo 'exec emacs ~/TODO' # 1 - $TMUX -s $SESSION neww -d -nncmpc # 2 - $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 -s0 neww -d -ntodo 'exec emacs ~/TODO' # 1 + $TMUX -s0 neww -d -nncmpc # 2 + $TMUX -s0 neww -d # 3 + $TMUX -s0 neww -d # 4 + $TMUX -s0 neww -d # 5 + $TMUX -s0 neww -d # 6 + $TMUX -s0 neww -d # 7 + $TMUX -s0 neww -d # 8 + $TMUX -s0 neww -d # 9 + # Session 1 + $TMUX new -d -s1 # 0 + + # Session 2 + $TMUX new -d -s2 # 0 + + # Rebind prefix key $TMUX set prefix ^A $TMUX unbind ^B $TMUX bind ^A send-prefix + # Bind q,w,e to session 0,1,2. We need per-session toolbar colours! + $TMUX bind q switch 0 + $TMUX bind Q switch 0 + $TMUX bind w switch 1 + $TMUX bind W switch 1 + $TMUX bind e switch 2 + $TMUX bind E switch 2 + + # No bells, thanks $TMUX set bell-action none fi -$TMUX -s $SESSION attach -d +$TMUX -s0 attach -d |