27 lines
514 B
Plaintext
Raw Normal View History

# dsniff completion -*- shell-script -*-
_dsniff()
{
local cur prev words cword
_init_completion || return
2009-10-04 19:42:50 +02:00
case $prev in
-r|-w|-f)
2009-10-04 19:42:50 +02:00
_filedir
return 0
;;
-i)
_interfaces
return 0
;;
esac
if [[ "$cur" == -* ]]; then
2011-05-15 15:50:28 +03:00
COMPREPLY=( $( compgen -W '$( _parse_usage "$1" ) -r -w' -- "$cur" ) )
2009-10-04 19:42:50 +02:00
fi
2009-06-08 21:22:43 +03:00
} &&
complete -F _dsniff dsniff
2009-10-04 19:42:50 +02:00
# ex: ts=4 sw=4 et filetype=sh