diff options
author | Doug Kearns <dkearns@users.sourceforge.net> | 2011-06-20 02:24:56 +0000 |
---|---|---|
committer | Doug Kearns <dkearns@users.sourceforge.net> | 2011-06-20 02:24:56 +0000 |
commit | 67ef9605f12969b5eab407f83fb117867b15655f (patch) | |
tree | 782622f6e2f43fcfd6e481ac6e8089dba4ce579a /Completion/BSD/Command/_sockstat | |
parent | 59a4cc38ea4e0aa3e9d7a42f701c7059cf7ceae3 (diff) | |
download | zsh-67ef9605f12969b5eab407f83fb117867b15655f.tar.gz zsh-67ef9605f12969b5eab407f83fb117867b15655f.tar.xz zsh-67ef9605f12969b5eab407f83fb117867b15655f.zip |
unposted: clean up completion descriptions as per Etc/completion-style-guide
Diffstat (limited to 'Completion/BSD/Command/_sockstat')
-rw-r--r-- | Completion/BSD/Command/_sockstat | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Completion/BSD/Command/_sockstat b/Completion/BSD/Command/_sockstat index 2acbe6bec..e61854622 100644 --- a/Completion/BSD/Command/_sockstat +++ b/Completion/BSD/Command/_sockstat @@ -3,10 +3,10 @@ local tmp_proto protocols proto tmp_proto=(${${(M)${(f)"$(</etc/protocols)"}##[a-z0-9]*}}) -for proto ($tmp_proto) { +for proto ($tmp_proto) { case $proto in *\#*) - protocols=($protocols ${${(j: :)${=proto}}// *\# /:}) + protocols=($protocols ${${(j: :)${=proto}}// *\# /:}) ;; *) protocols=($protocols ${${(j: :)${=proto}}// */}) @@ -14,10 +14,10 @@ for proto ($tmp_proto) { } _arguments -s \ - '-4[Show AF_INET (IPv4) sockets]' \ - '-6[Show AF_INET6 (IPv6) sockets]' \ - '-c[Show connected sockets]' \ - '-l[Show listening sockets]' \ - '-u[Show AF_LOCAL (UNIX) sockets]' \ - '-p[Only show Internet sockets if the port number is on the specified list]' \ - '-P[Only show sockets of the specified protocols]:protocols:(($protocols))' + '-4[show AF_INET (IPv4) sockets]' \ + '-6[show AF_INET6 (IPv6) sockets]' \ + '-c[show connected sockets]' \ + '-l[show listening sockets]' \ + '-u[show AF_LOCAL (UNIX) sockets]' \ + '-p[only show Internet sockets if the port number is on the specified list]' \ + '-P[only show sockets of the specified protocols]:protocols:(($protocols))' |