-n is now -s on new-session.

This commit is contained in:
Nicholas Marriott
2007-10-19 17:15:29 +00:00
parent 1b9647669a
commit 543e7b0f03
6 changed files with 51 additions and 9 deletions

2
examples/start-tmux.sh → examples/mxey-start-tmux.sh Executable file → Normal file
View File

@ -2,7 +2,7 @@
tmux attach
if [[ $? = 1 ]]; then
tmux new-session -d -nmain 'exec irssi'
tmux new-session -d -smain 'exec irssi'
tmux -smain set prefix '^H'
tmux -smain new-window -d -nherrie 'exec sudo herrie -c /home/mxey/etc/herrie/config'
tmux -smain new-window -d 'exec lynx'

View File

@ -0,0 +1,24 @@
#!/bin/sh
SOCKET=/tmp/tmux-1000-main
SESSION=natasha-main
TMUX="tmux -S $SOCKET"
if ! $TMUX -s $SESSION attach 2>/dev/null; then
$TMUX new -d -s $SESSION -nyelena 'exec ssh yelena' # 0
$TMUX -s $SESSION neww -d -ntodo 'exec emacs ~/TODO' # 1
$TMUX -s $SESSION neww -d -nncmpc 'exec ncmpc -f ~/.ncmpc.conf' # 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 set prefix ^A
$TMUX set bell-action none
$TMUX -s $SESSION attach
fi