comparison rc/bashrc @ 638:d36b8abe71ec

[bash] Fix tmux version parser
author nanaya <me@nanaya.pro>
date Wed, 15 Jan 2020 22:42:56 +0900
parents 7bcc81f6b210
children 9c0a70dd9ead
comparison
equal deleted inserted replaced
637:758ced52ee62 638:d36b8abe71ec
299 ;; 299 ;;
300 esac 300 esac
301 ;; 301 ;;
302 *) 302 *)
303 case "$(tmux -V 2> /dev/null)" in 303 case "$(tmux -V 2> /dev/null)" in
304 "tmux 2."[9][a-z]*|"tmux "[3-9]"."[0-9]|"tmux "[1-9][0-9][0.9]*"."[0-9]) _tmux_conf_ver=2.9;; 304 "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;;
305 "tmux 2."[2-8]) _tmux_conf_ver=2.2;; 305 "tmux 2."[2-8]) _tmux_conf_ver=2.2;;
306 "tmux 1.9"|"tmux 2."[0-1]) _tmux_conf_ver=1.9;; 306 "tmux 1.9"|"tmux 2."[0-1]) _tmux_conf_ver=1.9;;
307 "tmux 1."[4-8]) _tmux_conf_ver=1.4;; 307 "tmux 1."[4-8]) _tmux_conf_ver=1.4;;
308 *) _tmux_conf_ver=1.3;; 308 *) _tmux_conf_ver=1.3;;
309 esac 309 esac