diff options
Diffstat (limited to 'x11-terms/kitty/files/kitty-0.30.1-no-sudo.patch')
-rw-r--r-- | x11-terms/kitty/files/kitty-0.30.1-no-sudo.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/x11-terms/kitty/files/kitty-0.30.1-no-sudo.patch b/x11-terms/kitty/files/kitty-0.30.1-no-sudo.patch new file mode 100644 index 000000000000..d22bca5de0b5 --- /dev/null +++ b/x11-terms/kitty/files/kitty-0.30.1-no-sudo.patch @@ -0,0 +1,21 @@ +Ensure no sudo wrapper given may easily result in an error with no permission +to set TERMINFO. Normally disabled by "no-sudo" but depending on load ordering +or user configs overwriting that without disabling it as well, it could give +poor surprises. + +Not needed on Gentoo given have a kitty-terminfo package installed in standard +paths without needing TERMINFO set. +--- a/shell-integration/bash/kitty.bash ++++ b/shell-integration/bash/kitty.bash +@@ -215,4 +214,0 @@ +- if [[ "${_ksi_prompt[sudo]}" == "y" ]]; then +- # Ensure terminfo is available in sudo +- [[ -n "$TERMINFO" ]] && builtin alias sudo="sudo TERMINFO=\"$TERMINFO\"" +- fi +--- a/shell-integration/zsh/kitty-integration ++++ b/shell-integration/zsh/kitty-integration +@@ -391,4 +390,0 @@ +- if (( ! opt[(Ie)no-sudo] )); then +- # Ensure terminfo is available in sudo +- [[ -n "$TERMINFO" ]] && builtin alias sudo="sudo TERMINFO=\"$TERMINFO\"" +- fi |