From ec603790d152e3fb0b2307ecb971740f0f492177 Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Tue, 2 Apr 2024 17:33:30 +0200 Subject: [PATCH] nim prompt: Don't use test A single-argument use, even! Fixes #10404 --- share/tools/web_config/sample_prompts/nim.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/tools/web_config/sample_prompts/nim.fish b/share/tools/web_config/sample_prompts/nim.fish index 6cf21b3b2..aa1c8daa1 100644 --- a/share/tools/web_config/sample_prompts/nim.fish +++ b/share/tools/web_config/sample_prompts/nim.fish @@ -116,7 +116,7 @@ function fish_prompt # Battery status type -q acpi - and test (acpi -a 2> /dev/null | string match -r off) + and acpi -a 2> /dev/null | string match -rq off and _nim_prompt_wrapper $retc B (acpi -b | cut -d' ' -f 4-) # New line