Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completion for ipset
- X-seq: zsh-users 14031
- From: Tomasz Pala <gotar@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: completion for ipset
- Date: Sat, 11 Apr 2009 20:07:05 +0200
- In-reply-to: <20080623170935.GA7408@xxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20080529123042.GA24187@xxxxxxxxxxxxxxxx> <20080623170935.GA7408@xxxxxxxxxxxxxxxx>
Hi,
here goes updated ipset completion code.
--
Tomasz Pala <gotar@xxxxxxxxxxxxx>
--- _ipset.orig 2008-11-30 15:31:11.000000000 +0100
+++ _ipset 2009-04-11 20:03:40.000000000 +0200
@@ -11,7 +11,11 @@
'iphash[Hash of IP addresses]' \
'nethash[Hash of network addresses]' \
'ipporthash[Hash of IP address and port pairs]' \
- 'iptree[Tree of IP addresses, optionally with timeout]'
+ 'ipportiphash[Hash of IP address,port and IP address triples]' \
+ 'ipportnethash[Hash of IP address,port and network address triples]' \
+ 'iptree[Tree of IP addresses, optionally with timeout]' \
+ 'iptreemap[Tree of IP addresses or networks]' \
+ 'setlist[List of sets]'
}
if [[ $words[2] = (-q|--quiet) ]]; then
@@ -77,12 +81,18 @@
nethash)
args=( $hash )
;;
- ipporthash)
+ ipporthash|ipportiphash|ipportnethash)
args=( $from_to $hash )
;;
iptree)
args=( '--timeout[Timeout value for the entries in seconds (default 0)]:timeout' )
;;
+ iptreemap)
+ args=( '--gc[Garbage collection inverval (default 300 seconds)]:timeout' )
+ ;;
+ setlist)
+ args=( '--size[Size of the new setlist (default 8)]:size' )
+ ;;
esac
;;
-T|--test)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author