has-session command.

This commit is contained in:
Nicholas Marriott
2007-10-25 17:44:25 +00:00
parent 4df168c986
commit 9f06104c3a
7 changed files with 67 additions and 9 deletions

View File

@ -7,7 +7,7 @@ SESSION=natasha-main
TMUX="tmux -S $SOCKET"
if ! $TMUX -s $SESSION attach 2>/dev/null; then
if ! $TMUX -s $SESSION has 2>/dev/null; then
$TMUX new -d -s $SESSION -nyelena 'exec ssh yelena' # 0
$TMUX set default-command "$SHELL -l"
@ -27,6 +27,6 @@ if ! $TMUX -s $SESSION attach 2>/dev/null; then
$TMUX bind ^A send-prefix
$TMUX set bell-action none
$TMUX -s $SESSION attach
fi
$TMUX -s $SESSION attach