From bfedb3608f22d74334a3d6d45ed08d82977cb256 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 8 Nov 2021 20:01:43 +0100 Subject: [PATCH] fish_vi_cursor: add support for alternative foot terminfos Foot has several terminfos: * foot - the default one * foot-direct - 24-bit color terminfo, similar to xterm-direct (used by e.g. emacs) * foot-extra - alternative to the ncurses provided terminfo, with a couple of extra, non-standard capabilities * foot-extra-direct - 24-bit color version of the above There may also be other distro-custom terminfo names (serving the same purpose as foot-extra*) --- share/functions/fish_vi_cursor.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/fish_vi_cursor.fish b/share/functions/fish_vi_cursor.fish index 2661d52f2..1efabbed0 100644 --- a/share/functions/fish_vi_cursor.fish +++ b/share/functions/fish_vi_cursor.fish @@ -51,7 +51,7 @@ function fish_vi_cursor -d 'Set cursor shape for different vi modes' and not string match -q 'xterm-kitty*' -- $TERM and not string match -q 'rxvt*' -- $TERM and not string match -q 'alacritty*' -- $TERM - and not string match -q 'foot' -- $TERM + and not string match -q 'foot*' -- $TERM return end