zsh-workers
 help / color / mirror / Atom feed
* [PATCH] Add completion for choom
@ 2020-08-12 10:16 Jörg Sommer
  0 siblings, 0 replies; only message in thread
From: Jörg Sommer @ 2020-08-12 10:16 UTC (permalink / raw)
  To: zsh-workers; +Cc: Jörg Sommer

The Linux tool is used to adjust the OOM score of a process.
---
 Completion/Linux/Command/_choom | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 Completion/Linux/Command/_choom

diff --git a/Completion/Linux/Command/_choom b/Completion/Linux/Command/_choom
new file mode 100644
index 000000000..2a6dd03c7
--- /dev/null
+++ b/Completion/Linux/Command/_choom
@@ -0,0 +1,10 @@
+#compdef choom
+
+_arguments -S \
+  '(H -n --adjust)'{-n,--adjust}'+[specify the adjust score value (-1000...1000)]:score (-1000...1000)' \
+  '(H -p --pid)'{-p,--pid}'[interpret args as process ID]:process ID:_pids' \
+  '(H -p --pid):command:_command_names' \
+  '*::arguments:_normal' \
+  + 'H' \
+  '(- *)'{-V,--version}'[display version information]' \
+  '(- *)'{-h,--help}'[display help information]'
-- 
2.28.0



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-12 10:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-12 10:16 [PATCH] Add completion for choom Jörg Sommer

zsh-workers

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/zsh-workers

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 zsh-workers zsh-workers/ http://inbox.vuxu.org/zsh-workers \
		zsh-workers@zsh.org
	public-inbox-index zsh-workers

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.zsh.workers


code repositories for the project(s) associated with this inbox:

	https://git.vuxu.org/mirror/zsh/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git