From ba6397598f17cfff3a1781c7a78d63ec454d6881 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Wed, 15 Feb 2023 10:33:12 -0800 Subject: [PATCH] Fix tmux version parsing for 3.3a The non-numeric suffix was breaking the bc evaluation. The new sed expression should just remove anything that isn't a number or decimal --- assets/default/dotfiles/tmux.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/default/dotfiles/tmux.conf b/assets/default/dotfiles/tmux.conf index f75cd47..dadee09 100644 --- a/assets/default/dotfiles/tmux.conf +++ b/assets/default/dotfiles/tmux.conf @@ -33,7 +33,7 @@ bind C-s command-prompt -p "Send pane to:" "join-pane -t '%%'" bind C-b break-pane # based on https://stackoverflow.com/a/40902312/1046584 -run-shell "tmux setenv -g TMUX_VERSION $(tmux -V | cut -c 6-)" +run-shell "tmux setenv -g TMUX_VERSION $(tmux -V | sed 's/[^0-9.]//g')" # In version 2.1 "mouse" replaced the previous 4 mouse options if-shell -b '[ "$(echo "$TMUX_VERSION >= 2.1" | bc)" = 1 ]' \