summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2023-09-02 19:42:47 +0200
committersfan5 <sfan5@live.de>2023-09-02 20:32:56 +0200
commit1bf6abc62d2ac09745c0764328de22335cd93ec0 (patch)
tree707a7687222d2eff4c093d1edb48ba2d5bc2a34b /etc
parenta862f4ff1060c2930e7a4f7c867db838de52b51d (diff)
downloadmpv-1bf6abc62d2ac09745c0764328de22335cd93ec0.tar.bz2
mpv-1bf6abc62d2ac09745c0764328de22335cd93ec0.tar.xz
{zsh,bash}-completion: add missing --no-config flags
Seemingly forgotten, even though the intent was to add them. Fixes: 15252e13d5bb367a8f86ffbc5474488b841dc96c
Diffstat (limited to 'etc')
-rw-r--r--etc/_mpv.zsh4
-rw-r--r--etc/mpv.bash-completion8
2 files changed, 6 insertions, 6 deletions
diff --git a/etc/_mpv.zsh b/etc/_mpv.zsh
index 12c3d82b7c..400e34a0f6 100644
--- a/etc/_mpv.zsh
+++ b/etc/_mpv.zsh
@@ -150,7 +150,7 @@ function _mpv_generate_arguments {
function _mpv_generate_protocols {
_mpv_completion_protocols=()
local list_protos_line
- for list_protos_line in "${(@f)$($~words[1] --list-protocols)}"; do
+ for list_protos_line in "${(@f)$($~words[1] --no-config --list-protocols)}"; do
if [[ $list_protos_line =~ $'^[ \t]+(.*)' ]]; then
_mpv_completion_protocols+="$match[1]"
fi
@@ -211,7 +211,7 @@ case $state in
esac
local -a values
local current
- for current in "${(@f)$($~words[1] --${option_name}=help)}"; do
+ for current in "${(@f)$($~words[1] --no-config --${option_name}=help)}"; do
[[ $current =~ $pattern ]] || continue;
local name=${match[name_group]//:/\\:} desc=${match[desc_group]}
if [[ -n $desc ]]; then
diff --git a/etc/mpv.bash-completion b/etc/mpv.bash-completion
index 286e776bb0..55eed77ce1 100644
--- a/etc/mpv.bash-completion
+++ b/etc/mpv.bash-completion
@@ -42,7 +42,7 @@ _mpv_get_args()
_filedir 2>/dev/null || COMPREPLY=($(compgen -f))
return 0
else
- candidates=($(mpv $1=help | grep -v ':' | awk '{print $1;}'))
+ candidates=($(mpv --no-config $1=help | grep -v ':' | awk '{print $1;}'))
candidates+=("help")
fi
;;
@@ -50,16 +50,16 @@ _mpv_get_args()
candidates=("yes" "no" "help")
;;
Choices:|Object)
- candidates=($(mpv $1=help | grep -v ':' | awk '{print $1;}'))
+ candidates=($(mpv --no-config $1=help | grep -v ':' | awk '{print $1;}'))
candidates+=("help")
;;
Image)
- candidates=($(mpv $1=help))
+ candidates=($(mpv --no-config $1=help))
candidates=("${candidates[@]:2}")
candidates+=("help")
;;
Profile)
- candidates=($(mpv $1= | grep -v ':' | awk '{print $1;}'))
+ candidates=($(mpv --no-config $1= | grep -v ':' | awk '{print $1;}'))
;;
*)
# There are other categories; some of which we could do something smarter