Merge remote-tracking branch 'eraserhd/tmux-version-check'
This commit is contained in:
commit
5b34a6ed81
|
@ -53,7 +53,10 @@ define-command -hidden tmux-repl-disabled %{ evaluate-commands %sh{
|
||||||
} }
|
} }
|
||||||
|
|
||||||
evaluate-commands %sh{
|
evaluate-commands %sh{
|
||||||
VERSION_TMUX=$(tmux -V | cut -d' ' -f2)
|
VERSION_TMUX=$(tmux -V)
|
||||||
|
VERSION_TMUX=${VERSION_TMUX##* }
|
||||||
|
VERSION_TMUX=${VERSION_TMUX#next-}
|
||||||
|
VERSION_TMUX=${VERSION_TMUX%-rc*}
|
||||||
VERSION_TMUX=${VERSION_TMUX%%.*}
|
VERSION_TMUX=${VERSION_TMUX%%.*}
|
||||||
|
|
||||||
if [ "${VERSION_TMUX}" = "master" ] \
|
if [ "${VERSION_TMUX}" = "master" ] \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user