2 # Put this in /etc/bash_completion.d/
9 : ${GST_REGISTRY:=~/.gstreamer-0.10/registry.xml}
10 : ${GST_COMPLETE:=~/.gstreamer-0.10/complete}
12 if [ ! -f "${GST_REGISTRY}" ] ; then
16 if [ ! -f "${GST_COMPLETE}" \
17 -o "${GST_REGISTRY}" -nt "${GST_COMPLETE}" ] ; then
18 sed -n 's/^..<name>\(.*\)<\/name>/\1/ p' ${GST_REGISTRY} >${GST_COMPLETE}
21 cur=${COMP_WORDS[COMP_CWORD]}
22 COMPREPLY=( $(grep ^$cur $GST_COMPLETE) )
26 complete -F _gst_launch -o default gst-launch