diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-07-21 19:15:22 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-07-21 19:15:22 +0000 |
commit | 5b29fedad850299950195a1878fe4923778f9dcc (patch) | |
tree | 100a2decba0f1b6f8c4ed1b866bddd5f2ff57019 /Completion/Solaris/Command/_coreadm | |
parent | 2d2d341161ca6699a6efd6981c3a9fd7fe52e6d6 (diff) | |
download | zsh-5b29fedad850299950195a1878fe4923778f9dcc.tar.gz zsh-5b29fedad850299950195a1878fe4923778f9dcc.tar.xz zsh-5b29fedad850299950195a1878fe4923778f9dcc.zip |
25324: Danek Duvall: some Solaris and more general completions
Diffstat (limited to 'Completion/Solaris/Command/_coreadm')
-rw-r--r-- | Completion/Solaris/Command/_coreadm | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/Completion/Solaris/Command/_coreadm b/Completion/Solaris/Command/_coreadm new file mode 100644 index 000000000..7cf529a4f --- /dev/null +++ b/Completion/Solaris/Command/_coreadm @@ -0,0 +1,48 @@ +#compdef coreadm + +_coreadm() { + local -a content option + + content=( + "anon[Anonymous private mappings]" + "ctf[CTF type information]" + "data[Writable private file mappings]" + "dism[DISM mappings]" + "heap[Process heap]" + "ism[ISM mappings]" + "rodata[Read-only private file mappings]" + "shanon[Anonymous shared mappings]" + "shfile[File-backed shared mappings]" + "shm[System V shared memory]" + "stack[Process stack]" + "symtab[Symbol table sections for loaded files]" + "text[Readable and executable private file mappings]" + ) + + option=( + "global"\:"Allow global core dumps" + "global-setid"\:"Allow set-id global core dumps" + "log"\:"Generate a syslog message on global core dump" + "process"\:"Allow per-process core dumps" + "proc-setid"\:"Allow set-id per-process core dumps" + ) + + # _values doesn't quite work for us here -- the separator can be either + # "+" or "-" + _arguments -s \ + - set1 \ + '-g[Global core file name pattern]:' \ + '-G[Global core file content]:content:_values -s + "content" $content' \ + '-i[Per-process core file name pattern]:' \ + '-I[Per-process core file content]:content:_values -s + "content" $content' \ + '*-d[Disable core option]:option:(($option))' \ + '*-e[Enable core option]:option:(($option))' \ + - set2 \ + '-p[PID-specific per-process core file name pattern]:' \ + '-P[PID-specific per-process core file content]:content:_values -s + "content" $content' \ + '*:pids:_pids' \ + - set3 \ + '-u[Update options from coreadm.conf]' +} + +_coreadm "$@" |