summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--user/settings/zsh.nix4
-rw-r--r--user/zsh/zshrc.darwin8
2 files changed, 10 insertions, 2 deletions
diff --git a/user/settings/zsh.nix b/user/settings/zsh.nix
index 0ff7f519..bb7b8974 100644
--- a/user/settings/zsh.nix
+++ b/user/settings/zsh.nix
@@ -8,7 +8,7 @@ let
   lsOptions =
     if stdenv.isDarwin
     then "-p"
-    else "-v --group-directories-first";
+    else "-v --group-directories-first --hyperlink=auto";
   lsIsoDate =
     if stdenv.isDarwin
     then ""
@@ -224,5 +224,5 @@ in
       );
   };
 
-  home.file."${zshrc}".onChange = "${pkgs.zsh}/bin/zsh -i -c 'autoload -Uz compinit && compinit && zcompile ${zshrc}'";
+  home.file."${zshrc}".onChange = "${pkgs.zsh}/bin/zsh -i -c 'autoload -Uz compinit && compinit && zcompile $HOME/${zshrc}'";
 }
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