about summary refs log tree commit diff
path: root/Completion/Solaris
diff options
context:
space:
mode:
authorOliver Kiddle <okiddle@yahoo.co.uk>2018-05-19 11:04:18 +0200
committerOliver Kiddle <okiddle@yahoo.co.uk>2018-05-19 11:06:52 +0200
commit25f6f5eebee3aa43c2da1c581414766aee08d3d8 (patch)
treed380d83a6d9851029de737a61aeb912606879d3f /Completion/Solaris
parent5ac1c6f555cff38499e0a6ac80b338df4ebe3047 (diff)
downloadzsh-25f6f5eebee3aa43c2da1c581414766aee08d3d8.tar.gz
zsh-25f6f5eebee3aa43c2da1c581414766aee08d3d8.tar.xz
zsh-25f6f5eebee3aa43c2da1c581414766aee08d3d8.zip
42803: handle Linux and the the BSDs in netstat completion
Diffstat (limited to 'Completion/Solaris')
-rw-r--r--Completion/Solaris/Command/_netstat61
1 files changed, 0 insertions, 61 deletions
diff --git a/Completion/Solaris/Command/_netstat b/Completion/Solaris/Command/_netstat
deleted file mode 100644
index bf8e5aaa4..000000000
--- a/Completion/Solaris/Command/_netstat
+++ /dev/null
@@ -1,61 +0,0 @@
-#compdef netstat
-
-_netstat() {
-	local -a f_rules
-
-	f_rules=(
-		'af\::specify address family: inet, inet6, unix, number'
-		'outif\::specify output interface: ifName, ifIndex, any, none'
-		'dst\::specify destination IP: ip-addr[/mask], any, none'
-		'flags\::select routes tagged with flags: [+ -]?[ABDGHLMSU]+' 
-	)
-
-	_arguments \
-		- set1 \
-		'-a[show state of all sockets, all routing tables or all interfaces]' \
-		'-R[show extended security attributes for sockets and routing tables]' \
-		'-n[do not resolve addresses to names]' \
-		'-v[verbose]' \
-		'-f[specify address family]:address family:(inet inet6 unix)' \
-		'-P[specify protocol]:protocol:(ip ipv6 icmp icmpv6 igmp udp tcp rawip)' \
-		- set2 \
-		'-r[show routing table]' \
-		'-f[filter routing table]:rule:(($f_rules))' \
-		'-a[show state of all sockets, all routing tables or all interfaces]' \
-		'-v[verbose]' \
-		'-n[do not resolve addresses to names]' \
-		'-R[show extended security attributes for sockets and routing tables]' \
-		- set3 \
-		'-g[show multicast group memberships]' \
-		'-n[do not resolve addresses to names]' \
-		'-v[verbose]' \
-		'-f[specify address family]:address family:(inet inet6 unix)' \
-		- set4 \
-		'-i[show state of interfaces]' \
-		'-a[show state of all sockets, all routing tables or all interfaces]' \
-		'-f[specify address family]:address family:(inet inet6 unix)' \
-		'-n[do not resolve addresses to names]' \
-		'-I[select interface]:interface:_net_interfaces' \
-		- set5 \
-		'-m[show STREAMS memory statistics]' \
-		'-v[verbose]' \
-		- set6 \
-		'-p[show net to media tables]' \
-		'-n[do not resolve addresses to names]' \
-		'-f[specify address family]:address family:(inet inet6 unix)' \
-		- set7 \
-		'-s[show per protocol statistics]' \
-		'-f[specify address family]:address family:(inet inet6 unix)' \
-		'-P[specify protocol]:protocol:(ip ipv6 icmp icmpv6 igmp udp tcp rawip)' \
-		- set8 \
-		'-M[show multicast routing tables]' \
-		'-f[specify address family]:address family:(inet inet6 unix)' \
-		'-n[do not resolve addresses to names]' \
-		'-s[show per protocol statistics]' \
-		- set9 \
-		'-D[show status of DHCP configured interfaces]' \
-		'-f[specify address family]:address family:(inet inet6 unix)' \
-		'-I[select interface]:interface:_net_interfaces' \
-}
-
-_netstat "$@"