From 9a086da0812ea217cb046f5571eb473d3ea1a38b Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 23 Oct 2007 10:52:53 +0000 Subject: [PATCH] Sync. --- examples/nicm-start-tmux.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/examples/nicm-start-tmux.sh b/examples/nicm-start-tmux.sh index b4029d1b..f4f8fb07 100644 --- a/examples/nicm-start-tmux.sh +++ b/examples/nicm-start-tmux.sh @@ -1,4 +1,6 @@ -#!/bin/sh +#!/bin/sh -x + +[ ! -z "$TMUX" ] && exit SOCKET=/tmp/tmux-1000-main SESSION=natasha-main @@ -7,8 +9,11 @@ TMUX="tmux -S $SOCKET" if ! $TMUX -s $SESSION attach 2>/dev/null; then $TMUX new -d -s $SESSION -nyelena 'exec ssh yelena' # 0 + + $TMUX set default-command "$SHELL -l" + $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 -nncmpc # 2 $TMUX -s $SESSION neww -d # 3 $TMUX -s $SESSION neww -d # 4 $TMUX -s $SESSION neww -d # 5