On Tuesday 20 October 2009, Alex Goebel wrote:
> Makes sense. I'll try to submit it upstream.
> 
> In the meantime, how can I temporarily hack "shuffle" into the current
> version? Tried to add it somewhere into
> /etc/bash_completion.d/mplayer, but that didn't work?!

The attached one does.  But it also adds it for mencoder which isn't correct.  
After modifying some of the bash completion files, make sure you're actually 
using the modified ones (e.g. typically launch a new shell).
diff --git a/contrib/mplayer b/contrib/mplayer
index 157a7d8..248f1e0 100644
--- a/contrib/mplayer
+++ b/contrib/mplayer
@@ -223,5 +223,5 @@ _mplayer()
                 sed -ne '1,/^[[:space:]]*Name/d' \
                     -e "s/^[[:space:]]*/-/" -e "s/[[:space:]:].*//" \
-                    -e "/^-\(Total\|.*\*\)\?$/!p" )' -- "$cur" ) )
+                    -e "/^-\(Total\|.*\*\)\?$/!p" ) -shuffle' -- "$cur" ) )
             ;;
         *)

Reply via email to