/bash_completion_lib/complete/change_pw

http://github.com/brinkman83/bashrc · #! · 26 lines · 19 code · 7 blank · 0 comment · 0 complexity · 9b455bae1e3cf46526992657d4b7dd5c MD5 · raw file

  1. # Mailman completion by Guillaume Rousse <rousse@ccr.jussieu.fr>
  2. comp_include _get_cword _mailman_lists
  3. _change_pw()
  4. {
  5. local cur prev
  6. COMPREPLY=()
  7. cur=`_get_cword`
  8. prev=${COMP_WORDS[COMP_CWORD-1]}
  9. case "$prev" in
  10. -@(l|-listname=))
  11. _mailman_lists
  12. return 0
  13. ;;
  14. esac
  15. if [[ "$cur" == -* ]]; then
  16. COMPREPLY=( $( compgen -W '-a --all --domain= -d --listname= -l \
  17. --password= -p --quiet -q -h --help' -- $cur ) )
  18. fi
  19. } # _change_pw()