Merge remote-tracking branch 'nochiel/nochiel-fix-tmux-repl'

This commit is contained in:
Maxime Coste 2018-02-04 09:33:52 +11:00
commit 9883cf5f75

View File

@ -5,9 +5,10 @@ hook global KakBegin .* %{
%sh{ %sh{
if [ -n "$TMUX" ]; then if [ -n "$TMUX" ]; then
VERSION_TMUX=$(tmux -V) 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 " echo "
alias global repl tmux-repl-horizontal alias global repl tmux-repl-horizontal
alias global send-text tmux-send-text alias global send-text tmux-send-text