Kitty introduced a "shell_integration" which tries to do a package
managers and/or sysadmins job and does it badly. It creates an alias for
'sudo' to export the terminfo. It does this regardless of there being an
alias for 'sudo' already.
This brazen disregard for users setup by simply overriding things has
led me to try out wezterm now. This config will likely be removed soon.
#: Process hyperlink (OSC 8) escape sequences. If disabled OSC 8
#: escape sequences are ignored. Otherwise they become clickable
-#: links, that you can click by holding down ctrl+shift and clicking
-#: with the mouse. The special value of ``ask`` means that kitty will
-#: ask before opening the link.
+#: links, that you can click with the mouse or by using the hints
+#: kitten <https://sw.kovidgoyal.net/kitty/kittens/hints/>. The
+#: special value of ask means that kitty will ask before opening the
+#: link when clicked.
+
+shell_integration no-sudo
+
term xterm-kitty
+++ /dev/null
-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