double kitty integration fix -> no more brick cursor bug after switching to kitty and back

This commit is contained in:
Anton Volnuhin 2026-04-10 15:11:30 +03:00
parent de32b5f5d6
commit fe835de7f1

View File

@ -23,18 +23,6 @@ end
# Commands to run in interactive sessions can go here # Commands to run in interactive sessions can go here
if status is-interactive if status is-interactive
set -l kitty_fish_integration /Applications/kitty.app/Contents/Resources/kitty/shell-integration/fish/vendor_conf.d/kitty-shell-integration.fish
set -l kitty_fish_completions /Applications/kitty.app/Contents/Resources/kitty/shell-integration/fish/vendor_completions.d
if test -f "$kitty_fish_integration"
if test "$TERM" = xterm-kitty; or set -q KITTY_MOSH
set -g KITTY_SHELL_INTEGRATION enabled
source "$kitty_fish_integration"
if test -d "$kitty_fish_completions"
set --prepend fish_complete_path "$kitty_fish_completions"
end
end
end
if type -q atuin; and test -s ~/.local/share/atuin/key if type -q atuin; and test -s ~/.local/share/atuin/key
atuin init fish --disable-up-arrow | source atuin init fish --disable-up-arrow | source
end end