Skip to content

Commit

Permalink
don't spawn a terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
c00kiemon5ter committed Oct 23, 2013
1 parent 7dda17b commit f135aaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tmiii.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 <channel> 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
Expand Down

0 comments on commit f135aaf

Please sign in to comment.