mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Fix tmux version check
This commit is contained in:
parent
995fa1ceb6
commit
56eea7e195
|
@ -106,7 +106,7 @@ if [ "$PREVIEW_MODE" ] ; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
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
|
if [ -z "$SPLIT" ] && [ $(($(tput lines) * 2)) -gt "$(tput cols)" ] ; then
|
||||||
SPLIT='v'
|
SPLIT='v'
|
||||||
elif [ "$SPLIT" != 'v' ] ; then
|
elif [ "$SPLIT" != 'v' ] ; then
|
||||||
|
|
Loading…
Reference in a new issue