From 5ee57f18df26499c4fc5abaf5138cd649d09a6db Mon Sep 17 00:00:00 2001 From: Enrico Lumetti Date: Tue, 30 Aug 2016 16:48:21 +0200 Subject: [PATCH] Invoke tmux only after checking its existence --- rc/extra/tmux-repl.kak | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rc/extra/tmux-repl.kak b/rc/extra/tmux-repl.kak index 5f96bd30..55919d0e 100644 --- a/rc/extra/tmux-repl.kak +++ b/rc/extra/tmux-repl.kak @@ -3,10 +3,10 @@ hook global KakBegin .* %{ %sh{ - VERSION_TMUX=$(tmux -V) - VERSION_TMUX=$(expr "${VERSION_TMUX}" : 'tmux \([0-9]*\).*') - if [ -n "$TMUX" ]; then + VERSION_TMUX=$(tmux -V) + VERSION_TMUX=$(expr "${VERSION_TMUX}" : 'tmux \([0-9]*\).*') + if [ "${VERSION_TMUX}" -gt 1 ]; then echo " alias global repl tmux-repl-horizontal