summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2018-07-02 20:30:30 +1000
committerMaxime Coste <mawww@kakoune.org>2018-07-05 07:54:28 +1000
commit7f117dff1eaed5c7c8427635a2fbf171e75a11bb (patch)
tree9cbba29065463ac5fadcace2b81718564ba812b3
parent63d7984b898fd26e5b3575294759bfdedfa222fe (diff)
Fix kitty KakBegin hook with new command syntax
-rw-r--r--rc/extra/kitty.kak4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc/extra/kitty.kak b/rc/extra/kitty.kak
index 766bc06a..38933016 100644
--- a/rc/extra/kitty.kak
+++ b/rc/extra/kitty.kak
@@ -1,11 +1,11 @@
-hook global KakBegin .* %{ %sh{
+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 "$(command -v kak 2>/dev/null)" -c "${kak_session}" -e "$*" }