From 7168cc2ef2149049d7ffbce817f633763348f32a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Fri, 1 Dec 2023 11:25:22 +0800 Subject: [PATCH] Completions (Fish): reduce external dependencies --- completions/fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/completions/fish b/completions/fish index 0629c8161..aed0dccbc 100755 --- a/completions/fish +++ b/completions/fish @@ -56,7 +56,7 @@ function __fastfetch_complete_structure end end -python3 -c (grep "^###>" (status -f) | cut -c 6- | string collect) | source +string match -r -a -g "^###> ?(.*)" < (status -f) | string collect | python3 | source ###> #!/usr/bin/env python3 ###>