[Bash-completion-devel] mencoder profile completion

Ville Skyttä ville.skytta at iki.fi
Sat Mar 28 09:46:09 UTC 2009


On Saturday 28 March 2009, Ville Skyttä wrote:
> On Friday 27 March 2009, gibboris at gmail.com wrote:
> > Proposition, replacing :
> > local profiles=$(sed -ne 's|\[\(.*\)\]|\1|p' ~/.mplayer/config)
> > by
> > local aprofile = 'config'
> > [[ "$cmd" == 'mencoder' ]] && aprofile = 'mencoder.conf'
> > local profiles=$(sed -ne 's|\[\(.*\)\]|\1|p' "~/.mplayer/${aprofile}")
>
> Done in git, thanks for the suggestion.

On a second thought, done with _mplayer_options_list instead of accessing 
config files directly.



More information about the Bash-completion-devel mailing list