changeset 559:fbf4507230e2

Improved tmux version detection?
author nanaya <me@myconan.net>
date Tue, 02 Jun 2015 19:36:11 +0900
parents 0ea2c3c36438
children 41e5f907aca3
files rc/bashrc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rc/bashrc	Fri May 29 04:53:28 2015 +0900
+++ b/rc/bashrc	Tue Jun 02 19:36:11 2015 +0900
@@ -280,8 +280,8 @@
   ;;
   *)
     case "$(tmux -V 2> /dev/null)" in
-    "tmux 1."[1-9][0-9]*|"tmux 1.9"*) _tmux_conf_ver=1.9;;
-    "tmux 1."[4-8]*) _tmux_conf_ver=1.4;;
+    "tmux 1."[1-9][0-9][0-9]*|"tmux 1.9"*|"tmux 2.0"*) _tmux_conf_ver=1.9;;
+    "tmux 1."[4-8]) _tmux_conf_ver=1.4;;
     *) _tmux_conf_ver=1.3;;
     esac
   ;;