Get mencoder profile completions from mencoder.conf, thanks to Droz Raphaël.

This commit is contained in:
Ville Skyttä 2009-03-28 11:23:37 +02:00
parent 61b9a64519
commit cce8fc8941
3 changed files with 5 additions and 1 deletions

View File

@ -140,6 +140,7 @@ bash-completion (1.0)
* Simplify bash_completion.sh, return earlier in non-applicable environments.
* Remove obsolete --buildarch and --buildos rpm(build) completions.
* Add rpmbuild --target completion.
* Get mencoder profile completions from mencoder.conf, thanks to Droz Raphaël
[ Freddy Vulto ]
* Restored `_display()' completion for `display' by removing

View File

@ -6084,7 +6084,9 @@ _mplayer()
return 0
;;
-profile)
local profiles=$(sed -ne 's|\[\(.*\)\]|\1|p' ~/.mplayer/config)
local pfile=config
[[ "$cmd" == 'mencoder' ]] && pfile=mencoder.conf
local profiles=$(sed -ne 's|\[\(.*\)\]|\1|p' ~/.mplayer/$pfile 2>/dev/null)
COMPREPLY=( $( compgen -W "$profiles" -- $cur))
return 0
;;

1
debian/changelog vendored
View File

@ -140,6 +140,7 @@ bash-completion (1:1.0-1) UNRELEASED; urgency=low
* Simplify bash_completion.sh, return earlier in non-applicable environments.
* Remove obsolete --buildarch and --buildos rpm(build) completions.
* Add rpmbuild --target completion.
* Get mencoder profile completions from mencoder.conf, thanks to Droz Raphaël
[ Freddy Vulto ]
* Restored `_display()' completion for `display' by removing