[Bash-completion-commits] [SCM] bash-completion branch, master, updated. bb8ba402357cb029235c12a5253b7d33e5872001

Ville Skyttä ville.skytta at iki.fi
Sun Jul 11 09:17:12 UTC 2010


The following commit has been merged in the master branch:
commit b0c9212c544e53861a90e9c4f9c015965eba37b2
Author: Anton Khirnov <wyskas at gmail.com>
Date:   Wed Jul 7 18:44:32 2010 +0200

    mplayer: run mplayer with -nomsgmodule -nomsgcolor
    
    this fixes completion if user has msgmodule and/or msgcolor enabled in
    the config file.

diff --git a/contrib/mplayer b/contrib/mplayer
index 2786b7a..0c15cd1 100644
--- a/contrib/mplayer
+++ b/contrib/mplayer
@@ -4,7 +4,7 @@ have mplayer && {
 _mplayer_options_list()
 {
     cur=${cur%\\}
-    COMPREPLY=( $( compgen -W "$( $1 $2 help 2>/dev/null | \
+    COMPREPLY=( $( compgen -W "$( $1 -nomsgcolor -nomsgmodule $2 help 2>/dev/null | \
         sed -e '1,/^Available/d' | awk '{print $1}' | \
         sed -e 's/:$//' -e 's/^'${2#-}'$//' -e 's/<.*//' )" -- "$cur" ) )
 }
@@ -230,7 +230,7 @@ _mplayer()
 
     case $cur in
         -*)
-            COMPREPLY=( $( compgen -W '$( $cmd -list-options 2>/dev/null | \
+            COMPREPLY=( $( compgen -W '$( $cmd -nomsgcolor -nomsgmodule -list-options 2>/dev/null | \
                 sed -ne '1,/^[[:space:]]*Name/d' \
                     -e "s/^[[:space:]]*/-/" -e "s/[[:space:]:].*//" \
                     -e "/^-\(Total\|.*\*\)\{0,1\}$/!p" )' -- "$cur" ) )

-- 
bash-completion



More information about the Bash-completion-commits mailing list