made version detection more robust in case tmux executable is renamed (3), fixes #462

fixed a regression introduced by commit 8aefa1e798 that breaks
version detection for tmux HEAD for which 'tmux -V' prints e.g. tmux next-3.3
pull/463/head
Gregory Pakosz 2 years ago
parent 8aefa1e798
commit 3bfec1a25a
  1. 2
      .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" ]

Loading…
Cancel
Save