Invoke the actual mplayer/mencoder command being completed (with full path) to get various completions instead of simply "mplayer" or "mencoder".

This commit is contained in:
Ville Skyttä 2009-06-18 20:36:09 +03:00
parent ab36c8d29d
commit 8b2416c180
2 changed files with 4 additions and 2 deletions

View File

@ -88,6 +88,8 @@ bash-completion (1.x)
* Improve rpm group completion (displayed completions are still wrong).
* Change many completions to load in memory only if the completed commands
are available.
* Invoke the actual mplayer/mencoder command being completed (with full path)
to get various completions instead of simply "mplayer" or "mencoder".
[ Todd Zullinger ]
* Make yum complete on filenames after install, deplist, update and upgrade

View File

@ -23,11 +23,11 @@ _mplayer()
case "$prev" in
-@(ac|afm|vc|vfm|ao|vo|vop|fstype|demuxer|vf|af))
_mplayer_options_list mplayer $prev
_mplayer_options_list $cmd $prev
return 0
;;
-@(oac|ovc|of))
_mplayer_options_list mencoder $prev
_mplayer_options_list $cmd $prev
return 0
;;
-audiofile)