diff rc/bashrc @ 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 ce21ebae61b4
children 6ef4bbc171eb
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;;