/bash_completion_lib/complete/remove_members

http://github.com/brinkman83/bashrc · #! · 31 lines · 22 code · 9 blank · 0 comment · 0 complexity · 3c7a2ff3876de6fa301e1789810df110 MD5 · raw file

  1. # Mailman completion by Guillaume Rousse <rousse@ccr.jussieu.fr>
  2. comp_include _filedir _get_cword _mailman_lists
  3. _remove_members()
  4. {
  5. local cur prev
  6. COMPREPLY=()
  7. cur=`_get_cword`
  8. prev=${COMP_WORDS[COMP_CWORD-1]}
  9. case "$prev" in
  10. -@(f|-file=))
  11. _filedir
  12. return 0
  13. ;;
  14. esac
  15. if [[ "$cur" == -* ]]; then
  16. COMPREPLY=( $( compgen -W '--file= -f --all -a \
  17. --fromall --nouserack -n --noadminack -N \
  18. --help -h' -- $cur ) )
  19. else
  20. _mailman_lists
  21. fi
  22. } # _remove_members()