zsh-workers
 help / color / mirror / code / Atom feed
From: "Jörg Sommer" <joerg@jo-so.de>
To: zsh-workers@zsh.org
Cc: "Jörg Sommer" <joerg@jo-so.de>
Subject: [PATCH] Add completion for choom
Date: Wed, 12 Aug 2020 12:16:03 +0200	[thread overview]
Message-ID: <0c7af528679efcfb5d5d65d65500b845f973ff46.1597227363.git.joerg@jo-so.de> (raw)

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



                 reply	other threads:[~2020-08-12 10:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0c7af528679efcfb5d5d65d65500b845f973ff46.1597227363.git.joerg@jo-so.de \
    --to=joerg@jo-so.de \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).