Accept tmux pre-release and rc versions

This commit is contained in:
Jason Felice 2019-10-19 12:06:52 -04:00
parent 3c34de7fe7
commit 6f443537e4

View File

@ -53,7 +53,10 @@ define-command -hidden tmux-repl-disabled %{ evaluate-commands %sh{
} } } }
evaluate-commands %sh{ evaluate-commands %sh{
VERSION_TMUX=$(tmux -V | cut -d' ' -f2) VERSION_TMUX=$(tmux -V)
VERSION_TMUX=${VERSION_TMUX##* }
VERSION_TMUX=${VERSION_TMUX#next-}
VERSION_TMUX=${VERSION_TMUX%-rc*}
VERSION_TMUX=${VERSION_TMUX%%.*} VERSION_TMUX=${VERSION_TMUX%%.*}
if [ "${VERSION_TMUX}" = "master" ] \ if [ "${VERSION_TMUX}" = "master" ] \