PageRenderTime 2ms CodeModel.GetById 1ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/bash_completion.d/xmms

http://github.com/brinkman83/bashrc
#! | 30 lines | 24 code | 6 blank | 0 comment | 0 complexity | 2b780c2d9ea2738f8863d6ab97aa65cc MD5 | raw file
 1# bash completion for xmms
 2
 3have xmms &&
 4_xmms()
 5{
 6    local cur
 7
 8    COMPREPLY=()
 9    cur=`_get_cword`
10
11    if [[ "$cur" == -* ]]; then
12        COMPREPLY=( $( compgen -W '-h --help -r --rew -p --play \
13            -u --pause -s --stop -t --play-pause -f --fwd -e \
14            --enqueue -m --show-main-window -i --sm-client-id \
15            -v --version' -- "$cur" ) )
16    else
17        _filedir '@(mp[23]|MP[23]|ogg|OGG|wav|WAV|pls|m3u|xm|mod|s[3t]m|it|mtm|ult|flac)'
18
19    fi
20
21} &&
22complete -F _xmms $filenames xmms
23
24# Local variables:
25# mode: shell-script
26# sh-basic-offset: 4
27# sh-indent-comment: t
28# indent-tabs-mode: nil
29# End:
30# ex: ts=4 sw=4 et filetype=sh