1
0
Fork 0
mirror of synced 2024-12-21 22:31:06 -05:00

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
This commit is contained in:
Gregory Pakosz 2021-03-18 11:54:39 +01:00
parent 8aefa1e798
commit 3bfec1a25a

View file

@ -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" ]