nim prompt: Don't use test

A single-argument use, even!

Fixes #10404
This commit is contained in:
Fabian Boehm 2024-04-02 17:33:30 +02:00
parent e8e91c97a6
commit ec603790d1

View File

@ -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