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/_dumpadm | |
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/_dumpadm')
-rw-r--r-- | Completion/Solaris/Command/_dumpadm | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Completion/Solaris/Command/_dumpadm b/Completion/Solaris/Command/_dumpadm new file mode 100644 index 000000000..37491946c --- /dev/null +++ b/Completion/Solaris/Command/_dumpadm @@ -0,0 +1,23 @@ +#compdef dumpadm + +_dumpadm() { + local -a content + + content=( + "kernel"\:"Kernel memory pages only" + "all"\:"All memory pages" + "curproc"\:"Kernel memory pages plus curproc pages" + ) + + _arguments -s \ + '-n[Dont run savecore on reboot]' \ + '-u[Update dump configuration from dumpadm.conf]' \ + '-y[Run savecore on reboot]' \ + '-c[Set dump content]:dump content:(($content))' \ + '-d[Set dump device]:block devices:_files -g "*(-%b)"' \ + '-m[Set minfree size ]:' \ + '-s[Set the savecore directory]:directory:_files -/' \ + '-r[Alternate root directory]:directory:_files -/' +} + +_dumpadm "$@" |