home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / etc / bash_completion.d / xmms < prev    next >
Encoding:
Text File  |  2010-11-16  |  676 b   |  31 lines

  1. # bash completion for xmms
  2.  
  3. have xmms &&
  4. _xmms()
  5. {
  6.     local cur
  7.  
  8.     COMPREPLY=()
  9.     _get_comp_words_by_ref cur
  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. } &&
  22. complete -F _xmms -o 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
  31.