/bash_completion_lib/complete/arpspoof
http://github.com/brinkman83/bashrc · #! · 37 lines · 27 code · 10 blank · 0 comment · 0 complexity · b8a193eb60ab5a1b2e9abd5524c2fc86 MD5 · raw file
- # dsniff util completion by Guillaume Rousse <rousse@ccr.jussieu.fr>
- #
- # $Id: dsniff,v 1.2 2003/12/31 08:22:37 ianmacd Exp $
- # arpspoof(8) completion
- comp_include _get_cword _known_hosts
- _arpspoof()
- {
- local cur
- COMPREPLY=()
- cur=`_get_cword`
- prev=${COMP_WORDS[COMP_CWORD-1]}
- case "$prev" in
- -i)
- _interfaces
- return 0
- ;;
- -t)
- _known_hosts
- return 0
- ;;
- esac
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '-i -t' -- $cur ) )
- else
- _known_hosts
- fi
- } # _arpspoof()