# HG changeset patch # User nanaya # Date 1619150558 -32400 # Node ID 9c0a70dd9ead9f55b303a6afa4e639eabc9a65ac # Parent bdc9eddf374389f862842d52e05808def5fe5ec8 Update tmux pattern matching diff -r bdc9eddf3743 -r 9c0a70dd9ead rc/bashrc --- a/rc/bashrc Wed Nov 25 01:43:25 2020 +0900 +++ b/rc/bashrc Fri Apr 23 13:02:38 2021 +0900 @@ -301,7 +301,7 @@ ;; *) case "$(tmux -V 2> /dev/null)" in - "tmux 2."[9][a-z]*|"tmux "[3-9]"."[0-9][a-z]*|"tmux "[1-9][0-9][0.9]*"."[0-9][a-z]*) _tmux_conf_ver=2.9;; + "tmux 2.9"|"tmux 2.9"[a-z]*|"tmux "[3-9].[0-9]|"tmux "[3-9].[0-9][a-z]|"tmux "[1-9][0-9].[0-9]|"tmux "[1-9][0-9].[0-9][a-z]) _tmux_conf_ver=2.9;; "tmux 2."[2-8]) _tmux_conf_ver=2.2;; "tmux 1.9"|"tmux 2."[0-1]) _tmux_conf_ver=1.9;; "tmux 1."[4-8]) _tmux_conf_ver=1.4;;