1
0
Fork 0
mirror of synced 2024-11-03 01:08:59 -04:00

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

View file

@ -190,7 +190,7 @@ run -b '[ -z "#{window_active}" ] && [ -z "#{version}" ] && tmux set display-tim
# #
# _uname_s=$(uname -s) # _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() { # _is_enabled() {
# [ x"$1" = x"true" ] || [ x"$1" = x"yes" ] || [ x"$1" = x"enabled" ] || [ x"$1" = x"1" ] # [ x"$1" = x"true" ] || [ x"$1" = x"yes" ] || [ x"$1" = x"enabled" ] || [ x"$1" = x"1" ]