about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJörg Sommer <joerg@jo-so.de>2020-08-12 12:16:03 +0200
committerOliver Kiddle <opk@zsh.org>2020-08-13 22:19:02 +0200
commit8becb893579af0ca41617a15d3afcbea588fe621 (patch)
tree30dc24d3464d21c21b2308e4a93b4d2f183617e1
parent90e1f5d541c811126209762ea6275532d018cfee (diff)
downloadzsh-8becb893579af0ca41617a15d3afcbea588fe621.tar.gz
zsh-8becb893579af0ca41617a15d3afcbea588fe621.tar.xz
zsh-8becb893579af0ca41617a15d3afcbea588fe621.zip
47320: Add completion for Linux tool used to adjust process OOM score
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Linux/Command/_choom10
2 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 5a21e6abe..d14b527fc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2020-08-13  Oliver Kiddle  <opk@zsh.org>
 
+	* Jörg Sommer: 47320: Completion/Linux/Command/_choom: Add
+	completion for Linux tool used to adjust process OOM score
+
 	* 47321: Completion/Linux/Command/_btrfs: update for btrfs 5.4
 
 	* 47319: Completion/Unix/Command/_imagemagick: complete more
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]'