From 9da9f698df411eb791083365c4c1e2ad01352e7e Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Fri, 23 Dec 2022 11:17:47 +0100 Subject: [PATCH] completions/mpv: Don't use "command" (the alternative here is to explicitly check `command -q mpv`, but I'm going for the idea that a thing called "mpv" is going to be an mpv) Fixes #9426 --- share/completions/mpv.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/completions/mpv.fish b/share/completions/mpv.fish index 75f62138d..ca2fde28d 100644 --- a/share/completions/mpv.fish +++ b/share/completions/mpv.fish @@ -1,4 +1,4 @@ -set -l options (command mpv --list-options 2>/dev/null) +set -l options (mpv --list-options 2>/dev/null) complete -c mpv -l(string replace -fr '^\s*--([\w-]+).*' '$1' -- $options) complete -c mpv -lno-(string replace -fr '^\s*--([\w-]+).*Flag.*' '$1' -- $options)