1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-25 20:41:49 +03:00

Check if tmux was compiled from master.

Fixes #1827.
This commit is contained in:
Nicholas Ochiel 2018-01-21 21:21:30 +03:00
parent 90c16d2b0d
commit ca8cbf316c

View File

@ -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