I've got a bash script with a function that opens a number of windows,
killing them first to avoid creating more than one of the same window:

tmux kill-window -t "${TMUX_SESSION}:${name}"
tmux new-window -k -n "$name" -t "${TMUX_SESSION}" "$cmd"

This function gets called with names like "Project DB", "Project", in that
order. The problem is that kill-window appears to be using some sort of
fuzzy matching on the name, so when called with "Project", it kills the
"Project DB" window that was created by the previous invocation of this
function

I don't see a way of telling kill-window to match the name precisely. Is
there one? Any other recommendations (besides using different names or a
different order)?

Thanks,
David
------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
• 3 signs your SCM is hindering your productivity
• Requirements for releasing software faster
• Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to