diff --git a/rc/extra/tmux-repl.kak b/rc/extra/tmux-repl.kak index 1dfd7ab4..c1b9bcfe 100644 --- a/rc/extra/tmux-repl.kak +++ b/rc/extra/tmux-repl.kak @@ -5,9 +5,10 @@ hook global KakBegin .* %{ %sh{ if [ -n "$TMUX" ]; then VERSION_TMUX=$(tmux -V) - VERSION_TMUX=$(expr "${VERSION_TMUX}" : 'tmux \([0-9]*\).*') + VERSION_TMUX=$(expr "${VERSION_TMUX}" : 'tmux \([0-9]*\|master\)') - if [ "${VERSION_TMUX}" -gt 1 ]; then + if [ "${VERSION_TMUX}" = "master" ] \ + || [ "${VERSION_TMUX}" -ge 2 ]; then echo " alias global repl tmux-repl-horizontal alias global send-text tmux-send-text