mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-27 00:21:15 -03:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user