]> git.rmz.io Git - dotfiles.git/commitdiff
kitty: fuck off, don't mess with my environment
authorSamir Benmendil <me@rmz.io>
Tue, 31 Oct 2023 21:29:56 +0000 (21:29 +0000)
committerSamir Benmendil <me@rmz.io>
Sun, 17 Dec 2023 17:36:18 +0000 (17:36 +0000)
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.

kitty/kitty.conf
zsh/lib/kitty.zsh [deleted file]

index 2a4ea8e8fc49eca21bea37d1e2ad1dd403485dad..73883419e38926d50404650ef8f8684ad1a42232 100644 (file)
@@ -243,9 +243,13 @@ allow_hyperlinks yes
 
 #: 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
 
diff --git a/zsh/lib/kitty.zsh b/zsh/lib/kitty.zsh
deleted file mode 100644 (file)
index e606c01..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-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