diff options
| author | Daniel Friesel <derf@derf.homelinux.org> | 2008-09-21 15:31:10 +0200 | 
|---|---|---|
| committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-09-21 15:31:10 +0200 | 
| commit | fac1a17cafe72e31aede7236ed7716a7a168219d (patch) | |
| tree | 6ac767d5fb23b15c404a4b66740c207034e7cce9 /etc | |
| parent | 8af309de1f2de285bf4ef9927a82d677141bacc0 (diff) | |
Added iwlist completion
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/completions/_iwlist | 32 | 
1 files changed, 32 insertions, 0 deletions
diff --git a/etc/completions/_iwlist b/etc/completions/_iwlist new file mode 100644 index 0000000..99904ff --- /dev/null +++ b/etc/completions/_iwlist @@ -0,0 +1,32 @@ +#compdef iwlist +## iwlist completion as requested by mxey +## Written 2008 by Daniel Friesel <derf@derf.homelinux.org> +## https://derf.homelinux.org/~derf/dotfiles/zsh/completions/_iwlist + +function _iwlist_options () { +	typeset -a options +	options=( +		'scanning:list accesspoints' +		'frequency:list available frequencies' +		'bitrate:list supported bitrates' +		'encryption:list encryption keys and key sizes' +		'power:list power management modes' +		'txpower:list available transmit powers' +		'retry:list transmit retry limits and lifetime' +		'event:list supported wireless events' +		'auth:list set WPA authentication parameters' +		'wpakeys:list set WPA encryption keys' +		'genie:list GENeric Information Elements' +		'modulation:list supported and enabled modulations' +	) +	_describe option options +} + +if (( CURRENT == 2 )); then +	_net_interfaces +	_iwlist_options +elif (( CURRENT == 3 )); then +	_iwlist_options +else +	_message "no more arguments" +fi  | 
