From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15624 invoked by alias); 30 Jul 2015 15:42:12 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 20371 Received: (qmail 10046 invoked from network); 30 Jul 2015 15:42:09 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=NW84k7ieRPlGL8wRyM8btXwQfv8=; b=w9H7E3 HWSfLKQ9pdU+bH11saIyIOT/dUXM55u/TlaxQ7CiI/Bcyp0/vweJmhzZQrJHnbbX uic/wUyMS6SVZktVzt8mkcj60RFot1x9ZLrLceOf4FsoNJrwEOWnwxHXcUSKKJZB VPcIcctki+ig5SHSv6pP8weF8ZHzuRum4jhvY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=NW84k7ieRPlGL8wRyM8btXwQfv8=; b=cIxi9 Qa0o2hCn/v6aaRNE6dwpf/n02WO3OdcBHN/RflspYB6he9wmfT60kYNEmtVKb7L+ my/DRXNxdvRI1QqFxyZ4mOSYKfi1mX1bHyOUDPQQxGoq7TkDC6mqgrN7GHh6bly+ O11zHN5o2K+veOMJF8EWANZVa/BgH4T1C+z/uI= X-Sasl-enc: NcDO+rAm7THWi7xELUvb96oxpQ1TCAeuIAklVLlY1uII 1438270924 Date: Thu, 30 Jul 2015 15:42:01 +0000 From: Daniel Shahaf To: Bart Schaefer Cc: zsh-users@zsh.org Subject: Re: ps http completion to get procees ID Message-ID: <20150730154201.GD2264@tarsus.local2> References: <150728121925.ZM8124@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <150728121925.ZM8124@torch.brasslantern.com> User-Agent: Mutt/1.5.21 (2010-09-15) Bart Schaefer wrote on Tue, Jul 28, 2015 at 12:19:25 -0700: > On Jul 28, 12:34pm, zzapper wrote: > } > } This works on my Cygwin zsh 5.0.8 > } but not on my Centos zsh 5.0.7 > } > } what needs to be configured to get this marvellous feature to work? > > Install 5.0.8 on your CentOS? > > There were a lot of changes to _main_complete as well as to _ps between > the .7 and .8 releases. Debug trace is radically different for the two. > > It *seems* to work to just copy the 5.0.8 _ps file into fpath somewhere > ahead of the 5.0.7 version, but I can't promise something obscure won't > go wrong. It seems to only complete processes from the current terminal. For example, if I just do 'ps ', I get: % ps ... > process ID 23620 pts/11 00:00:00 zsh 23647 pts/11 00:00:00 zsh 23648 pts/11 00:00:00 ps > all matches ... I guess that's due to _pids running 'ps' without further arguments. Shouldn't the command be configurable? I'd love to have it show all user processes (or even all processes when sudoed). For 'kill' we already allow customizing the listing format via the 'command' style; I suppose it would be nice to support the same here. Cheers, Daniel