diff options
author | Guido Cella <guido@guidocella.xyz> | 2024-04-26 21:01:01 +0200 |
---|---|---|
committer | Kacper Michajłow <kasper93@gmail.com> | 2024-04-27 03:01:06 +0200 |
commit | 2f4c550b4b46e1c79663679bd39516cf7df153bc (patch) | |
tree | 2c1895dd1abc6baf898a4026f573ffdfe0d94f03 | |
parent | fbfc9d22c7dda20492c8a87cb59e43f05557de7f (diff) | |
download | mpv-2f4c550b4b46e1c79663679bd39516cf7df153bc.tar.bz2 mpv-2f4c550b4b46e1c79663679bd39516cf7df153bc.tar.xz |
zsh-completion: complete --gpu-context
This is made by possible by 96e1f1dfa5 standardizing --gpu-context's
help output. This changes the check to complete any Object settings list
so it will automatically work with future options of this kind.
-rw-r--r-- | etc/_mpv.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/_mpv.zsh b/etc/_mpv.zsh index c34a381ab2..64795ddb23 100644 --- a/etc/_mpv.zsh +++ b/etc/_mpv.zsh @@ -101,7 +101,7 @@ function _mpv_generate_arguments { entry+='->files' - elif [[ $name == (ao|vo|af|vf|profile|audio-device|vulkan-device) ]]; then + elif [[ $desc = 'Object settings list'* || $name == (profile|audio-device|vulkan-device) ]]; then entry+="->parse-help-$name" |