Created
May 8, 2012 21:42
-
-
Save glidenote/2639605 to your computer and use it in GitHub Desktop.
Completion script for ss
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#compdef ss | |
# ------------------------------------------------------------------------------ | |
# Description | |
# ----------- | |
# | |
# Completion script for ss | |
# | |
# Source: https://github.com/glidenote/ss-zsh-completion | |
# | |
# ------------------------------------------------------------------------------ | |
# Authors | |
# ------- | |
# | |
# * Akira Maeda | |
# | |
# ------------------------------------------------------------------------------ | |
_arguments -s -S \ | |
'(-h --help)'{-h,--help}'[Print this summary and exit]' \ | |
'(-V --version)'{-V,--version}'[output version information]' \ | |
'(-n --numeric)'{-n,--numeric}"[don't resolve service names]" \ | |
'(-r --resolve)'{-r,--resolve}'[resolve host names]' \ | |
'(-a --all)'{-a,--all}'[display all sockets]' \ | |
'(-l --listening)'{-l,--listening}'[display listening sockets]' \ | |
'(-o --options)'{-o,--options}'[show timer information]' \ | |
'(-e --extended)'{-e,--extended}'[show detailed socket information]' \ | |
'(-m --memory)'{-m,--memory}'[show socket memory usage]' \ | |
'(-p --processes)'{-p,--processes}'[show process using socket]' \ | |
'(-i --info)'{-i,--info}'[show internal TCP information]' \ | |
'(-s --summary)'{-s,--summary}'[show socket usage summary]' \ | |
'(-4 --ipv4)'{-4,--ipv4}'[display only IP version 4 sockets]' \ | |
'(-6 --ipv6)'{-6,--ipv6}'[display only IP version 6 sockets]' \ | |
'(-0 --packet)'{-0,--packet}'[display PACKET sockets]' \ | |
'(-t --tcp)'{-t,--tcp}'[display only TCP sockets]' \ | |
'(-u --udp)'{-u,--udpi}'[display only UDP sockets]' \ | |
'(-d --dccp)'{-d,--dccp}'[display only DCCP sockets]' \ | |
'(-w --raw)'{-w,--raw}'[display only RAW sockets]' \ | |
'(-x --unix)'{-x,--unix}'[display only Unix domain sockets]' \ | |
'(-f --family)'{-f,--family=}'[display sockets of type FAMILY]:family:(unix inet inet6 link netlink)' \ | |
'(-A --query --socket)'{-A,--query=,--socket=}'[QUERY := {all|inet|tcp|udp|raw|unix|packet|netlink}]:query:(all inet tcp udp raw unix packet netlink)' \ | |
'(-D --diag)'{-D,--diag=}'[Dump raw information about TCP sockets to FILE]:_files' \ | |
'(-F --filter)'{-F,--filter=}'[read filter information from FILE. FILTER := \[ state TCP-STATE \] \[ EXPRESSION \]]:_files' \ | |
'(-):command: _command_names -e' \ | |
'*::args: _normal' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment