summary refs log tree commit diff stats
path: root/user/zsh
diff options
context:
space:
mode:
authorAlan Pearce2023-05-12 09:18:57 +0200
committerAlan Pearce2023-05-12 09:18:57 +0200
commited7b5467946283acc91543d9ffda4cd120320a54 (patch)
tree23df8d7c75724ae747f067cd1bb4f51cad6a0cf3 /user/zsh
parent50c9f04d5b9b53667dc63ed40a6dafbc13ce1dc6 (diff)
downloadnixfiles-ed7b5467946283acc91543d9ffda4cd120320a54.tar.lz
nixfiles-ed7b5467946283acc91543d9ffda4cd120320a54.tar.zst
nixfiles-ed7b5467946283acc91543d9ffda4cd120320a54.zip
zsh/darwin: integrate with kitty
Diffstat (limited to 'user/zsh')
-rw-r--r--user/zsh/zshrc.darwin8
1 files changed, 8 insertions, 0 deletions
diff --git a/user/zsh/zshrc.darwin b/user/zsh/zshrc.darwin
index 58093e09..06e7bbc9 100644
--- a/user/zsh/zshrc.darwin
+++ b/user/zsh/zshrc.darwin
@@ -32,3 +32,11 @@ finder() {
 	open -a Finder "${1:-.}"
 }
 compdef '_path_files -/' finder
+
+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
+	alias ssh="kitten ssh"
+fi