changeset 514:13deb0e1a2cc

tmux 1.3 doesn't have -V parameter.
author edogawaconan <me@myconan.net>
date Tue, 08 Apr 2014 12:03:04 +0900
parents 9066463340a4
children 023071785b97
files rc/bashrc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rc/bashrc	Thu Mar 27 12:18:43 2014 +0900
+++ b/rc/bashrc	Tue Apr 08 12:03:04 2014 +0900
@@ -269,7 +269,7 @@
     _tmux_conf_ver=1.9
   ;;
   *)
-    case "$(tmux -V)" in
+    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_conf_ver=1.3;;