comparison rc/bashrc @ 559:fbf4507230e2

Improved tmux version detection?
author nanaya <me@myconan.net>
date Tue, 02 Jun 2015 19:36:11 +0900
parents daed3e2c9651
children 18cad636d1a2
comparison
equal deleted inserted replaced
558:0ea2c3c36438 559:fbf4507230e2
278 # FIXME: OpenBSD version check 278 # FIXME: OpenBSD version check
279 _tmux_conf_ver=1.9 279 _tmux_conf_ver=1.9
280 ;; 280 ;;
281 *) 281 *)
282 case "$(tmux -V 2> /dev/null)" in 282 case "$(tmux -V 2> /dev/null)" in
283 "tmux 1."[1-9][0-9]*|"tmux 1.9"*) _tmux_conf_ver=1.9;; 283 "tmux 1."[1-9][0-9][0-9]*|"tmux 1.9"*|"tmux 2.0"*) _tmux_conf_ver=1.9;;
284 "tmux 1."[4-8]*) _tmux_conf_ver=1.4;; 284 "tmux 1."[4-8]) _tmux_conf_ver=1.4;;
285 *) _tmux_conf_ver=1.3;; 285 *) _tmux_conf_ver=1.3;;
286 esac 286 esac
287 ;; 287 ;;
288 esac 288 esac
289 alias tmux="tmux -f '""${HOME}""/.tmux-""${_tmux_conf_ver}"".conf'" 289 alias tmux="tmux -f '""${HOME}""/.tmux-""${_tmux_conf_ver}"".conf'"