diff rc/bashrc @ 652:9c0a70dd9ead

Update tmux pattern matching
author nanaya <me@nanaya.pro>
date Fri, 23 Apr 2021 13:02:38 +0900
parents d36b8abe71ec
children 1fb1c9cd3755
line wrap: on
line diff
--- 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;;