comparison rc/bashrc @ 627:84791ac85abd

Update tmux 2.9+ compatible syntax
author nanaya <me@nanaya.pro>
date Sun, 30 Jun 2019 20:25:30 +0900
parents 2f6b07f2ab94
children 7bcc81f6b210
comparison
equal deleted inserted replaced
626:ffc095d36df2 627:84791ac85abd
285 alias 0pp="gzip | curl 'https://0paste.com/pastes.txt' -F 'paste[is_private]=1' -F 'paste[paste_gzip]=<-'" 285 alias 0pp="gzip | curl 'https://0paste.com/pastes.txt' -F 'paste[is_private]=1' -F 'paste[paste_gzip]=<-'"
286 fi 286 fi
287 287
288 if command -v tmux > /dev/null 2>&1; then 288 if command -v tmux > /dev/null 2>&1; then
289 case "${_os}" in 289 case "${_os}" in
290 "OpenBSD "*" "6.[5-9]" "*|"OpenBSD "*" "[7-9].[0-9]" "*|"OpenBSD "*" "[1-9][0-9][0-9]*.[0-9]" "*)
291 _tmux_conf_ver=2.9
292 ;;
290 OpenBSD) 293 OpenBSD)
291 # FIXME: OpenBSD version check 294 # probably not accurate enough but I don't want to dig through all the previous versions.
292 _tmux_conf_ver=2.2 295 _tmux_conf_ver=2.2
293 ;; 296 ;;
294 *) 297 *)
295 case "$(tmux -V 2> /dev/null)" in 298 case "$(tmux -V 2> /dev/null)" in
296 "tmux 2."[2-9]|"tmux "[3-9]"."[0-9]|"tmux "[1-9][0-9][0.9]*"."[0-9]) _tmux_conf_ver=2.2;; 299 "tmux 2."[9][a-z]*|"tmux "[3-9]"."[0-9]|"tmux "[1-9][0-9][0.9]*"."[0-9]) _tmux_conf_ver=2.9;;
300 "tmux 2."[2-8]) _tmux_conf_ver=2.2;;
297 "tmux 1.9"|"tmux 2."[0-1]) _tmux_conf_ver=1.9;; 301 "tmux 1.9"|"tmux 2."[0-1]) _tmux_conf_ver=1.9;;
298 "tmux 1."[4-8]) _tmux_conf_ver=1.4;; 302 "tmux 1."[4-8]) _tmux_conf_ver=1.4;;
299 *) _tmux_conf_ver=1.3;; 303 *) _tmux_conf_ver=1.3;;
300 esac 304 esac
301 ;; 305 ;;