PageRenderTime 61ms CodeModel.GetById 40ms app.highlight 0ms RepoModel.GetById 20ms app.codeStats 0ms

/bash_completion_lib/complete/macof

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