PageRenderTime 314ms CodeModel.GetById 312ms app.highlight 0ms RepoModel.GetById 2ms app.codeStats 0ms

/bash_completion_lib/complete/dsniff

http://github.com/brinkman83/bashrc
#! | 30 lines | 24 code | 6 blank | 0 comment | 0 complexity | 8599b21b112a53a4f14d13cae37c2761 MD5 | raw file
 1# dsniff(8) completion
 2#
 3comp_include _filedir _get_cword _interfaces
 4
 5_dsniff()
 6{
 7	local cur
 8
 9	COMPREPLY=()
10	cur=`_get_cword`
11	prev=${COMP_WORDS[COMP_CWORD-1]}
12
13	case "$prev" in
14		-@(r|w|f))
15			_filedir
16			return 0
17			;;
18		-i)
19			_interfaces
20			return 0
21			;;
22	esac
23
24	if [[ "$cur" == -* ]]; then
25		COMPREPLY=( $( compgen -W '-c -d -m -n -i -s -f -t \
26			-r -w' -- $cur ) )
27	fi
28} # _dsniff()
29
30