summaryrefslogtreecommitdiff
path: root/Completion/Solaris/Command/_prstat
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2022-04-11 00:18:04 +0200
committerAxel Beckert <abe@deuxchevaux.org>2022-04-11 00:18:04 +0200
commit31bcc5c263aea983e967426e2b94269e7605dcd4 (patch)
tree7b48ad9d7799afe09b7d7d8adc980bd5db935bdf /Completion/Solaris/Command/_prstat
parent5086b5356abcef8849dc8a09902b7c55f01db3c0 (diff)
parentb09f4483416c54c1782824633dfabaf2ec0265b6 (diff)
downloadzsh-31bcc5c263aea983e967426e2b94269e7605dcd4.tar.gz
zsh-31bcc5c263aea983e967426e2b94269e7605dcd4.zip
Update upstream source from tag 'upstream/5.8.1.2-test'
Update to upstream version '5.8.1.2-test' with Debian dir b380d582bf51cd93149e4dea28fffa1ad85db4f5
Diffstat (limited to 'Completion/Solaris/Command/_prstat')
-rw-r--r--Completion/Solaris/Command/_prstat79
1 files changed, 37 insertions, 42 deletions
diff --git a/Completion/Solaris/Command/_prstat b/Completion/Solaris/Command/_prstat
index 1eb38845c..a95919127 100644
--- a/Completion/Solaris/Command/_prstat
+++ b/Completion/Solaris/Command/_prstat
@@ -1,46 +1,41 @@
#compdef prstat
-_prstat()
-{
- local d_opt sort_key
- d_opt=(
- "u"\:"seconds past the epoch"
- "d"\:"standard date format"
- )
+local d_opt sort_key
+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"
- )
+sort_key=(
+ "cpu"\:"process CPU usage"
+ "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 "$@"
+_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)]:sort key [cpu]:(($sort_key))' \
+ '-S[sort key (ascending)]:sort key [cpu]:(($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]'