all repos — nixfiles @ ed7b5467946283acc91543d9ffda4cd120320a54

System and user configuration, managed by nix and home-manager

zsh/darwin: integrate with kitty

Alan Pearce
commit

ed7b5467946283acc91543d9ffda4cd120320a54

parent

50c9f04d5b9b53667dc63ed40a6dafbc13ce1dc6

2 files changed, 10 insertions(+), 2 deletions(-)

changed files
M user/settings/zsh.nixuser/settings/zsh.nix
@@ -8,7 +8,7 @@ inherit (pkgs) stdenv;
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 @@ else ""
); }; - 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}'"; }
M user/zsh/zshrc.darwinuser/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