From 93be3213830a0a8c263b31a69f667b0a32747557 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Tue, 31 Oct 2023 21:29:56 +0000 Subject: [PATCH] kitty: fuck off, don't mess with my environment 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 | 10 +++++++--- zsh/lib/kitty.zsh | 6 ------ 2 files changed, 7 insertions(+), 9 deletions(-) delete mode 100644 zsh/lib/kitty.zsh diff --git a/kitty/kitty.conf b/kitty/kitty.conf index 2a4ea8e..7388341 100644 --- a/kitty/kitty.conf +++ b/kitty/kitty.conf @@ -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 . 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 index e606c01..0000000 --- a/zsh/lib/kitty.zsh +++ /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 -- 2.48.1