Merge remote-tracking branch 't6/patch-freebsd-tmux'

This commit is contained in:
Maxime Coste 2018-05-09 23:03:13 +10:00
commit 095ccfedb4

View File

@ -4,8 +4,8 @@
hook global KakBegin .* %{
%sh{
if [ -n "$TMUX" ]; then
VERSION_TMUX=$(tmux -V)
VERSION_TMUX=$(expr "${VERSION_TMUX}" : 'tmux \([0-9]*\|master\)')
VERSION_TMUX=$(tmux -V | cut -d' ' -f2)
VERSION_TMUX=${VERSION_TMUX%%.*}
if [ "${VERSION_TMUX}" = "master" ] \
|| [ "${VERSION_TMUX}" -ge 2 ]; then