Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] Add completion for choom



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





Messages sorted by: Reverse Date, Date, Thread, Author