Skip to content

Commit

Permalink
tmiii: conform to latest tmux changes
Browse files Browse the repository at this point in the history
  • Loading branch information
c00kiemon5ter committed Oct 15, 2012
1 parent cde7274 commit fa6c795
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 @@ -12,7 +12,7 @@ opts="TERM="${t:-rxvt-unicode}" m="$m" h="$h" r=$r u="$u" l="$l" i="$i" n="$n" c
## 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:-$n}" "$opts iii.sh"
elif ! tmux list-windows -t IRC | awk -v r=1 -v m="${c:-$n}" '$2 == m { print $2; exit r=0 } END { exit r }'
elif ! tmux list-windows -t IRC | awk -v r=1 -v m="${c:-$n}" '$2 ~ "^"m"[*!-]*$" { print $2; exit r=0 } END { exit r }'
then tmux new-window -t IRC -n "${c:-$n}" -d "$opts iii.sh"
fi

0 comments on commit fa6c795

Please sign in to comment.