From 560eb3ee361d2897a6c37d8c9854688caad7dd50 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Sat, 23 Jun 2018 08:55:38 +0300 Subject: [PATCH] rc extra: Fix `kitty` support --- rc/extra/kitty.kak | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rc/extra/kitty.kak b/rc/extra/kitty.kak index 4a493636..766bc06a 100644 --- a/rc/extra/kitty.kak +++ b/rc/extra/kitty.kak @@ -1,14 +1,14 @@ -hook global KakBegin .* %sh{ - if [ "$TERM" = "xterm-kitty" -a -z "$TMUX" ]; then +hook global KakBegin .* %{ %sh{ + if [ "$TERM" = "xterm-kitty" ] && [ -z "$TMUX" ]; then echo " alias global new kitty-new alias global focus kitty-focus " fi -} +} } define-command -params .. kitty-new %{ - nop %sh{ kitty @ new-window "$(which kak)" -c $kak_session -e "$*" } + nop %sh{ kitty @ new-window "$(command -v kak 2>/dev/null)" -c "${kak_session}" -e "$*" } } define-command -params ..1 -client-completion \