mpv: New completion alias + adjustments for mplayer (Debian: #749115)

This commit is contained in:
Ville Skyttä 2014-06-02 13:55:03 +03:00
parent d748a5a249
commit de78c1653a
3 changed files with 7 additions and 5 deletions

View File

@ -97,6 +97,7 @@ mkisofs
mogrify
montage
mplayer2
mpv
msgsnarf
muttng
ncal

View File

@ -513,6 +513,7 @@ CLEANFILES = \
mogrify \
montage \
mplayer2 \
mpv \
msgsnarf \
muttng \
ncal \
@ -785,7 +786,7 @@ symlinks: $(targetdir) $(DATA)
rm -f $(targetdir)/$$file && \
$(LN_S) mcrypt $(targetdir)/$$file ; \
done
for file in mplayer2 mencoder gmplayer kplayer ; do \
for file in mplayer2 mencoder gmplayer kplayer mpv ; do \
rm -f $(targetdir)/$$file && \
$(LN_S) mplayer $(targetdir)/$$file ; \
done

View File

@ -25,8 +25,8 @@ _mplayer()
_mplayer_options_list $cmd -profile
return 0
;;
-audiofile)
_filedir '@(mp3|mpg|ogg|w?(a)v|mid|flac|mka|ape)'
-audiofile|-audio-file)
_filedir '@(mp3|mpg|ogg|w?(a)v|mid|flac|mka|ac3|ape)'
return 0
;;
-font|-subfont)
@ -39,7 +39,7 @@ _mplayer()
COMPREPLY+=( $( compgen -W '$( fc-list 2>/dev/null )' -- "$cur" ) )
return 0
;;
-sub)
-sub|-sub-file)
_filedir '@(srt|sub|txt|utf|rar|mpsub|smi|js|ssa|ass)'
return 0
;;
@ -286,6 +286,6 @@ _mplayer()
return 0
} &&
complete -F _mplayer mplayer mplayer2 mencoder gmplayer kplayer
complete -F _mplayer mplayer mplayer2 mencoder gmplayer kplayer mpv
# ex: ts=4 sw=4 et filetype=sh