Fix tmux version check

This commit is contained in:
Arun Prakash Jana 2020-06-04 03:41:42 +05:30
parent 995fa1ceb6
commit 56eea7e195
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -106,7 +106,7 @@ if [ "$PREVIEW_MODE" ] ; then
exit 0
fi
if [ -e "${TMUX%%,*}" ] && [ "$(tmux -V | cut -c6)" -eq 3 ] ; then
if [ -e "${TMUX%%,*}" ] && tmux -V | grep -q '[ -][3456789]\.' ; then
if [ -z "$SPLIT" ] && [ $(($(tput lines) * 2)) -gt "$(tput cols)" ] ; then
SPLIT='v'
elif [ "$SPLIT" != 'v' ] ; then