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=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 12075 invoked from network); 7 Feb 2021 01:48:54 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 7 Feb 2021 01:48:54 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Message-ID:Date:Content-ID: Content-Type:MIME-Version:Subject:To:From:Reply-To:Cc: Content-Transfer-Encoding:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References; bh=SHPnQuqFSVHUDJOix2bmyVNZwkXyPl+lhxCh9ou6jaQ=; b=blzr3F0mbNoOE5vfqK05v5jtJT /YaTeNpw+MRgD9kE8NCNbCChzm8IzhoQyLM95BMMlUluXCu9wn2hQQlDXJhmud23WGiSNRMQhIG66 pvuXUuLTya4fHsf+uxelRVUMX7Oe3/KzKTqW1C+mLVsQiLuDUT5fuJliMJW+HHHuEwHFB4CawbAAP ZB5/jspdVDVT0N5M5EGO1UeKcw/PxCWodwXpE8qugg15kH8ldw9SIM/7XDH7sFbqvrxy643DR26c/ lvYSdsbPaU/DMSGukEJWg5Kaz4rhKe4CqPhdGd+cpJuUtePzrJMSC14XcAj71+80SuvZnhzpunY4j X8rJl62A==; Received: from authenticated user by zero.zsh.org with local id 1l8ZC1-0007um-9c; Sun, 07 Feb 2021 01:48:53 +0000 Received: from authenticated user by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1l8ZBj-0007kL-Qx; Sun, 07 Feb 2021 01:48:36 +0000 Received: from [192.168.178.21] (helo=hydra) by mail.kiddle.eu with esmtp(Exim 4.93.0.4) (envelope-from ) id 1l8ZBi-0007Ge-NM for zsh-workers@zsh.org; Sun, 07 Feb 2021 02:48:34 +0100 From: Oliver Kiddle To: Zsh workers Subject: PATCH: update completions for procps 3.3.16 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <27938.1612662514.1@hydra> Date: Sun, 07 Feb 2021 02:48:34 +0100 Message-ID: <27939-1612662514.721483@P16v.HIcB.BuEO> X-Seq: 47932 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: On Linux procps covers a number of fairly standard process related utilities. Updating this to 3.3.16 affects a few of them - w, vmstat, pgrep and free. I'm not keen on tracking these versions in comments in the completion files themself because updating the comment everytime there's a new release that doesn't add options would get silly. Oliver diff --git a/Completion/Linux/Command/_free b/Completion/Linux/Command/_free index cc5bcf3bd..6d74e4a0d 100644 --- a/Completion/Linux/Command/_free +++ b/Completion/Linux/Command/_free @@ -1,5 +1,4 @@ #compdef free -# based on procps-ng-3.3.15 _arguments -s \ '(-l --lohi)'{-l,--lohi}'[show detailed low and high memory statistics]' \ @@ -7,6 +6,7 @@ _arguments -s \ '(-w --wide)'{-w,--wide}'[wide mode]' \ '(-s --seconds)'{-s,--seconds}'[specify the delay between display]:seconds: ' \ '(-c --count)'{-c+,--count=}'[specify the display count]:count: ' \ + '(-C --full-cache)'{-C,--full-cache}'[add further cache lines to main cache]' \ '--si[use power of 1000 instead of power of 1024]' \ '(-)--help[print help and exit]' \ '(-)'{-V,--version}'[print version information and exit]' \ diff --git a/Completion/Unix/Command/_pgrep b/Completion/Unix/Command/_pgrep index 49184307f..51a4883df 100644 --- a/Completion/Unix/Command/_pgrep +++ b/Completion/Unix/Command/_pgrep @@ -33,6 +33,7 @@ arguments=( '(-o -n --oldest --newest)'{-o,--oldest}'[match oldest process]' '(-P --parent)'{-P+,--parent=}'[match only on specified parent process IDs]: :->ppid' '(-l)-q[suppress normal output]' + '(-r --runstates)'{-r+,--runstates}'[match runstates]:run state:compadd -S "" D I R S T t W X Z' '-S[search also in system processes (kernel threads)]' '(-s --session)'{-s+,--session=}'[match only on specified process session IDs]: :->sid' # _signals is OK here - we do it differently below @@ -61,7 +62,7 @@ arguments=( case $OSTYPE in linux*) # Note: We deliberately exclude -v but not --inverse from pkill - pgopts=acdFfGghLlnoPstUuVvwx- + pgopts=acdFfGghLlnoPrstUuVvwx- pkopts=ceFfGghLnoPstUuVx- arguments=( ${arguments:#((#s)|*\))(\*|)-[acl]*} diff --git a/Completion/Unix/Command/_vmstat b/Completion/Unix/Command/_vmstat index f3ac1af14..e05bc88bc 100644 --- a/Completion/Unix/Command/_vmstat +++ b/Completion/Unix/Command/_vmstat @@ -8,6 +8,7 @@ case $OSTYPE in '(-t --timestamp)'{-t,--timestamp}'[show timestamp]' '(-n --one-header)'{-n,--one-header}'[do not redisplay header]' '(-S --unit)'{-S+,--unit=}'[specify unit for displayed sizes]:unit prefix [K]:((k\:1000 K\:1024 m\:1000000 M\:1048576))' + '(-C --full-cache)'{-C,--full-cache}'[add further cache lines to main cache]' '1: :_guard "[0-9]#" "interval (seconds)"' '2:count' + '(action)' \ '(- :)'{-h,--help}'[display help information]' diff --git a/Completion/Unix/Command/_w b/Completion/Unix/Command/_w index 8fb4154c7..69751c5e5 100644 --- a/Completion/Unix/Command/_w +++ b/Completion/Unix/Command/_w @@ -11,6 +11,7 @@ case $OSTYPE in '(H -o --old-style -s --short)'{-o,--old-style}'[old style output format]' '(H -s --short -o --old-style)'{-s,--short}'[use short output format]' '(H -u --no-current)'{-u,--no-current}'[ignore the username while figuring out the current process and cpu times]' + '(H -n --no-truncat)'{-n,--no-truncat}'[non-truncated listing (large)]' + H '(-)--help[display help information]' '(-)'{-V,--version}'[display version information]'