made version detection more robust in case tmux executable is renamed
This commit is contained in:
parent
918c0f252c
commit
efee3bb4ac
1 changed files with 1 additions and 1 deletions
|
@ -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" ]
|
||||||
|
|
Loading…
Reference in a new issue