2011-11-01 22:14:45 +02:00
|
|
|
# dsniff completion -*- shell-script -*-
|
2003-08-03 00:59:16 +00:00
|
|
|
|
|
|
|
_dsniff()
|
|
|
|
{
|
2011-04-20 16:49:57 +03:00
|
|
|
local cur prev words cword
|
|
|
|
_init_completion || return
|
2009-10-04 19:42:50 +02:00
|
|
|
|
2009-12-30 00:39:59 +01:00
|
|
|
case $prev in
|
2009-11-22 11:43:26 +01:00
|
|
|
-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
|
2003-08-03 00:59:16 +00:00
|
|
|
|
2009-06-08 21:22:43 +03:00
|
|
|
} &&
|
2003-08-03 00:59:16 +00:00
|
|
|
complete -F _dsniff dsniff
|
|
|
|
|
2009-10-04 19:42:50 +02:00
|
|
|
# ex: ts=4 sw=4 et filetype=sh
|