made version detection more robust in case tmux executable is renamed

This commit is contained in:
Gregory Pakosz 2020-10-27 19:35:13 +01:00
parent 918c0f252c
commit efee3bb4ac
1 changed files with 1 additions and 1 deletions

View File

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