From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 5285 invoked from network); 12 Aug 2020 10:17:23 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 12 Aug 2020 10:17:23 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=Sender:List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=iZOQa92RR5OFZne2tvydLFukSlLZHkbwCsHqpaU8WzE=; b=Z6gN57uuZ0fxQmQb/3uhSP3vNV 9GhNovD7GTIOa8YIyRCPZRM/RXNS3X5ZGOZU0+DLbUifkpz2qWJktGAe6mqACJ2kjsMDdOqXKREeE RsV1/dU26J0xXVvc+rPZcIZ0HsTXCLVXS+1tMgxKaEWit8r+EBcFwVX3jxkyecMFcClERWX6I4aJ/ yW5d1sS1Jpn+O3m3MQz72cBMPtZoSab+qFALiK6iBZPkPed44b9FQDP2sCqxHXk/XiTw4QfkVMRnM BBRrQ0cmw3tC/bCCBuBnG4XUTENmIqfw/vCLeEcL+k6dhMXbPVcOK2iIR//HGAUa80WPiwUKdZhQf pTw/aLRA==; Received: from authenticated user by zero.zsh.org with local id 1k5nox-000AGu-3S; Wed, 12 Aug 2020 10:17:23 +0000 Authentication-Results: zsh.org; iprev=pass (s1.jo-so.de) smtp.remote-ip=37.221.195.157 Received: from s1.jo-so.de ([37.221.195.157]:57271) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1k5nok-000A84-S6; Wed, 12 Aug 2020 10:17:12 +0000 Received: from mail-relay (helo=jo-so.de) by s1.jo-so.de with local-bsmtp (Exim 4.92) (envelope-from ) id 1k5noj-0007EA-TK for zsh-workers@zsh.org; Wed, 12 Aug 2020 12:17:10 +0200 Received: from joerg by zenbook.jo-so.de with local (Exim 4.94) (envelope-from ) id 1k5noj-008mcg-8s; Wed, 12 Aug 2020 12:17:09 +0200 From: =?UTF-8?q?J=C3=B6rg=20Sommer?= To: zsh-workers@zsh.org Cc: =?UTF-8?q?J=C3=B6rg=20Sommer?= Subject: [PATCH] Add completion for choom Date: Wed, 12 Aug 2020 12:16:03 +0200 Message-Id: <0c7af528679efcfb5d5d65d65500b845f973ff46.1597227363.git.joerg@jo-so.de> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Zsh-Org-Should-ARC-Sign: true X-Seq: 47320 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: Sender: Sympa Owner 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