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
This commit is contained in:
Fabian Boehm 2022-12-23 11:17:47 +01:00
parent eed46a65ce
commit 9da9f698df

View file

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