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

Ville Skyttä ville.skytta at iki.fi
Tue Sep 28 16:18:41 UTC 2010


The following commit has been merged in the master branch:
commit 06083c35639ea06f1463a219d935647338d6a283
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Tue Sep 28 19:04:38 2010 +0300

    Add Fontconfig patterns to mplayer -font completions.

diff --git a/completions/mplayer b/completions/mplayer
index e7ee093..23c45dd 100644
--- a/completions/mplayer
+++ b/completions/mplayer
@@ -33,6 +33,9 @@ _mplayer()
             ;;
         -font)
             _filedir '@(desc|ttf)'
+            IFS=$'\n'
+            COMPREPLY=( "${COMPREPLY[@]}"
+                $( compgen -W '$( fc-list 2>/dev/null )' -- "$cur" ) )
             return 0
             ;;
         -sub)

-- 
bash-completion



More information about the Bash-completion-commits mailing list