From f135aafb079b5a1da8e7e5fde2e9ed61b6ba96f0 Mon Sep 17 00:00:00 2001 From: Ivan Kanakarakis Date: Thu, 24 Oct 2013 02:21:54 +0300 Subject: [PATCH] don't spawn a terminal --- tmiii.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmiii.sh b/tmiii.sh index 37e2720..0eada88 100755 --- a/tmiii.sh +++ b/tmiii.sh @@ -11,7 +11,7 @@ opts="TERM="${t:-rxvt-unicode}" m="$m" h="$h" p="$p" n="$n" l="$l" i="$i" s="$s" ## spawn a new tmux window named in a tmux session named IRC if ! tmux list-sessions | awk -v r=1 '$1 == "IRC:" { exit r=0 } END { exit r }' -then urxvtc -name "IRC-tmux" -e tmux new-session -s IRC -n "${c:-$s}" "$opts iii.sh" +then tmux new-session -s IRC -n "${c:-$s}" "$opts iii.sh" elif ! tmux list-windows -t IRC | awk -v r=1 -v m="${c:-$s}" '$2 ~ "^"m"[*!-]*$" { exit r=0 } END { exit r }' then tmux new-window -t IRC -n "${c:-$s}" -d "$opts iii.sh" fi