main
1# Kitty terminal integration
2[[ -n "$KITTY_INSTALLATION_DIR" ]] || return
3
4export KITTY_SHELL_INTEGRATION="no-rc"
5autoload -Uz -- "$KITTY_INSTALLATION_DIR"/shell-integration/zsh/kitty-integration
6kitty-integration
7unfunction kitty-integration
8
9# WORKAROUND: kitty < 0.47.2 spawns kitten __watch_conf__ that recursively
10# watches symlink targets (e.g. nix store), exhausting inotify watches.
11# See https://github.com/kovidgoyal/kitty/issues/10102
12# Remove when Fedora ships kitty >= 0.47.2.
13if (( KITTY_PID )) && [[ ! -f /tmp/.kitty-watcher-killed-$KITTY_PID ]]; then
14 pkill -f 'kitten __watch_conf__' 2>/dev/null
15 touch /tmp/.kitty-watcher-killed-$KITTY_PID
16fi
17