summaryrefslogtreecommitdiff
path: root/completions/mplayer
diff options
context:
space:
mode:
Diffstat (limited to 'completions/mplayer')
-rw-r--r--completions/mplayer8
1 files changed, 4 insertions, 4 deletions
diff --git a/completions/mplayer b/completions/mplayer
index ab08b9a9..e43e6c08 100644
--- a/completions/mplayer
+++ b/completions/mplayer
@@ -3,7 +3,7 @@
_mplayer_options_list()
{
cur=${cur%\\}
- COMPREPLY=( $( compgen -W "$( $1 -nomsgcolor -nomsgmodule $2 help 2>/dev/null | \
+ COMPREPLY=( $( compgen -W "$( $1 -noconfig all $2 help 2>/dev/null | \
command sed -e '/^Available/,/^$/!d' -e '/^Available/d' | awk '{print $1}' | \
command sed -e 's/:$//' -e 's/^'${2#-}'$//' -e 's/<.*//' )" -- "$cur" ) )
}
@@ -26,7 +26,7 @@ _mplayer()
return
;;
-audiofile|-audio-file)
- _filedir '@(mp3|mpg|ogg|w?(a)v|mid|flac|mka|ac3|ape)'
+ _filedir '@(mp3|mpg|og[ag]|w?(a)v|mid|flac|mka|ac3|ape)'
return
;;
-font|-subfont)
@@ -262,7 +262,7 @@ _mplayer()
-*)
# Assume arg is required for everything else except options
# for which -list-options says Type is Flag or Print.
- $cmd -nomsgcolor -nomsgmodule -list-options 2>/dev/null \
+ $cmd -noconfig all -list-options 2>/dev/null \
| while read -r i j k; do
if [[ $i == ${prev#-} ]]; then
[[ ${j,,} != @(flag|print) ]] && return 1
@@ -274,7 +274,7 @@ _mplayer()
case $cur in
-*)
- COMPREPLY=( $( compgen -W '$( $cmd -nomsgcolor -nomsgmodule -list-options 2>/dev/null | \
+ COMPREPLY=( $( compgen -W '$( $cmd -noconfig all -list-options 2>/dev/null | \
command sed -ne '1,/^[[:space:]]*Name/d' \
-e "s/^[[:space:]]*/-/" -e "s/[[:space:]:].*//" \
-e "/^-\(Total\|.*\*\)\{0,1\}$/!p" )' -- "$cur" ) )