From efee3bb4ac649d2aca0c2a20ebd819fffb4a0099 Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Tue, 27 Oct 2020 19:35:13 +0100 Subject: [PATCH] made version detection more robust in case tmux executable is renamed --- .tmux.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.tmux.conf b/.tmux.conf index aa7b939..6a0e6ef 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -190,7 +190,7 @@ run -b '[ -z "#{window_active}" ] && [ -z "#{version}" ] && tmux set display-tim # # _uname_s=$(uname -s) # -# _tmux_version=$(tmux -V | tr -cd '[:digit:].' | awk -F '.' '{print $1 * 100 + $2}') +# _tmux_version=$(tmux -V | tr -cd '[:digit:].' | cut -d' ' -f2 | awk -F '.' '{print $1 * 100 + $2}') # # _is_enabled() { # [ x"$1" = x"true" ] || [ x"$1" = x"yes" ] || [ x"$1" = x"enabled" ] || [ x"$1" = x"1" ]