]> git.rmz.io Git - dotfiles.git/commitdiff
zsh: shell integration for kitty
authorSamir Benmendil <me@rmz.io>
Sat, 14 Jan 2023 01:23:26 +0000 (01:23 +0000)
committerSamir Benmendil <me@rmz.io>
Sat, 14 Jan 2023 02:35:29 +0000 (02:35 +0000)
I'm not sure this was necessary, but it's there now.

zsh/lib/kitty.zsh [new file with mode: 0644]

diff --git a/zsh/lib/kitty.zsh b/zsh/lib/kitty.zsh
new file mode 100644 (file)
index 0000000..e606c01
--- /dev/null
@@ -0,0 +1,6 @@
+if test -n "$KITTY_INSTALLATION_DIR"; then
+    export KITTY_SHELL_INTEGRATION="enabled"
+    autoload -Uz -- "$KITTY_INSTALLATION_DIR"/shell-integration/zsh/kitty-integration
+    kitty-integration
+    unfunction kitty-integration
+fi