From 5aab0e2dd90705a0ad69b1fb6b17657d1dd6b08c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Wed, 15 Nov 2023 16:21:07 +0800 Subject: [PATCH] Completion (Fish): built-in logos auto-completion --- completions/fish | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/completions/fish b/completions/fish index 0c61e2500..1515ff223 100755 --- a/completions/fish +++ b/completions/fish @@ -40,7 +40,9 @@ for line in (string match -- ' -*' $whole_text) set temp $modules"\tModule" set res $res -x -a "$temp" case '' - set res $res -x -a "none\tNone small\tSmall" + set -l builtin_logos (fastfetch --list-logos-autocompletion) + set -l temp $builtin_logos"\tBuiltin" + set res $res -x -a "none\tNone small\tSmall $temp" case '' set res $res -x -a "black\tColor red\tColor green\tColor yellow\tColor blue\tColor magenta\tColor cyan\tColor white\tColor default\tColor" case '<*>'