From 3bfec1a25a8a66dd251d37f4efcd6a0e9f30a6da Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Thu, 18 Mar 2021 11:54:39 +0100 Subject: [PATCH] made version detection more robust in case tmux executable is renamed (3), fixes #462 fixed a regression introduced by commit 8aefa1e79809de7f69259ea91299313cca7579f7 that breaks version detection for tmux HEAD for which 'tmux -V' prints e.g. tmux next-3.3 --- .tmux.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.tmux.conf b/.tmux.conf index 4d0ef4a..7f2f988 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -189,7 +189,7 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration' # # _uname_s=$(uname -s) # -# _tmux_version=$(tmux -V | awk '{print ($2+0) * 100}') +# _tmux_version=$(tmux -V | awk '{gsub(/[^0-9.]/, "", $2); print ($2+0) * 100}') # # _is_enabled() { # [ x"$1" = x"true" ] || [ x"$1" = x"yes" ] || [ x"$1" = x"enabled" ] || [ x"$1" = x"1" ]