mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 14:27:09 +00:00
-n is now -s on new-session.
This commit is contained in:
2
examples/start-tmux.sh → examples/mxey-start-tmux.sh
Executable file → Normal file
2
examples/start-tmux.sh → examples/mxey-start-tmux.sh
Executable file → Normal 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'
|
24
examples/nicm-start-tmux.sh
Normal file
24
examples/nicm-start-tmux.sh
Normal 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
|
Reference in New Issue
Block a user