diff --git a/etc/_mpv.zsh b/etc/_mpv.zsh index 7837d60411..dff2a61629 100644 --- a/etc/_mpv.zsh +++ b/etc/_mpv.zsh @@ -72,10 +72,10 @@ function generate_arguments { _mpv_completion_arguments+="$name" - elif [[ $desc =~ $'^alias for --([^ \t]+)' ]]; then + elif [[ $desc =~ $'^alias for (--)?([^ \t]+)' ]]; then # Save this for later; we might not have parsed the target option yet - option_aliases+="$name $match[1]" + option_aliases+="$name $match[2]" else