mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
{zsh,bash}-completion: run mpv with --no-config
Reading the config when we're just interested in the option list (not sure why mpv does that anyway) only has the potential to mess this process up when it prints errors or the user has funny options like msg-level or log-file set, so avoid doing so.
This commit is contained in:
@@ -42,7 +42,7 @@ function _mpv_generate_arguments {
|
||||
local -a option_aliases=()
|
||||
|
||||
local list_options_line
|
||||
for list_options_line in "${(@f)$($~words[1] --list-options)}"; do
|
||||
for list_options_line in "${(@f)$($~words[1] --no-config --list-options)}"; do
|
||||
|
||||
[[ $list_options_line =~ $'^[ \t]+--([^ \t]+)[ \t]*(.*)' ]] || continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user