diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2012-06-21 08:50:14 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2012-06-21 08:50:14 +0000 |
commit | 71052cb69c455f8182e8f85ba8d4ea4be7e5caf0 (patch) | |
tree | 3cc9aa0959c21dfd32344e068dea009ec9f0af08 /Completion/Solaris/Command/_prstat | |
parent | cbb8a3c762ba6034e5ae0c35e6d04c2de130f933 (diff) | |
download | zsh-71052cb69c455f8182e8f85ba8d4ea4be7e5caf0.tar.gz zsh-71052cb69c455f8182e8f85ba8d4ea4be7e5caf0.tar.xz zsh-71052cb69c455f8182e8f85ba8d4ea4be7e5caf0.zip |
Danek (plus .distfiles): 30520: updated Solaris 11 copmletion
Diffstat (limited to 'Completion/Solaris/Command/_prstat')
-rw-r--r-- | Completion/Solaris/Command/_prstat | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/Completion/Solaris/Command/_prstat b/Completion/Solaris/Command/_prstat new file mode 100644 index 000000000..963fad649 --- /dev/null +++ b/Completion/Solaris/Command/_prstat @@ -0,0 +1,45 @@ +#compdef prstat + +_prstat() +{ + d_opt=( + "u"\:"seconds past the epoch" + "d"\:"standard date format" + ) + + sort_key=( + "cpu"\:"process CPU usage (default)" + "pri"\:"process priority" + "rss"\:"resident set size" + "size"\:"size of process image" + "time"\:"process execution time" + ) + + _arguments -A "-*" \ + '-a[information about processes and users]' \ + '-c[new reports below previous reports instead of overprinting them]' \ + '-C[processes or lwps that are bound to processor sets in the list]:processor set list:' \ + '-d[specify the representation of time]:time representation:(($d_opt))' \ + '-h[only processes or lwps whose home lgroup is in the list]:lgroup list:' \ + '-H[information about home lgroup]' \ + '-j[only processes or lwps whose project ID is in the given list]:project list:' \ + '-J[information about processes and projects]' \ + '-k[only processes or lwps whose task ID is in tasklist]:task list'\ + '-L[statistics for each light-weight process (LWP)]' \ + '-m[microstate process accounting information]' \ + '-n[restrict number of output lines]:ntop,[nbottom]' \ + '-p[only processes whose process ID is in the list]:PID list' \ + '-P[only processes or lwps which have most recently executed on a CPU in the list]:CPU list' \ + '-R[Put prstat in the real time scheduling class]' \ + '-s[Sort key (descending)]:key:(($sort_key))' \ + '-S[Sort key (ascending)]:key:(($sort_key))' \ + '-t[total usage summary for each user]' \ + '-T[information about processes and tasks]' \ + '-u[only processes whose effective user ID is in the list]:UID:_users' \ + '-U[only processes whose real user ID is in the list]:UID:_users' \ + '-v[verbose process usage]' \ + '-z[only processes or LWPs whose zone ID is in the list]:zone ID:' \ + '-Z[information about processes and zones]' +} + +_prstat "$@" |