From 6f443537e4bd298f2835d652e5f95d72fd9d8740 Mon Sep 17 00:00:00 2001 From: Jason Felice Date: Sat, 19 Oct 2019 12:06:52 -0400 Subject: [PATCH] Accept tmux pre-release and rc versions --- rc/windowing/repl/tmux.kak | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rc/windowing/repl/tmux.kak b/rc/windowing/repl/tmux.kak index 94b832e3..ecd464b6 100644 --- a/rc/windowing/repl/tmux.kak +++ b/rc/windowing/repl/tmux.kak @@ -53,7 +53,10 @@ define-command -hidden tmux-repl-disabled %{ 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%%.*} if [ "${VERSION_TMUX}" = "master" ] \