From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22270 invoked by alias); 3 Sep 2018 13:59:49 -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: List-Unsubscribe: X-Seq: 23602 Received: (qmail 21723 invoked by uid 1010); 3 Sep 2018 13:59:49 -0000 X-Qmail-Scanner-Diagnostics: from out1-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(66.111.4.25):SA:0(-2.6/5.0):. Processed in 0.472464 secs); 03 Sep 2018 13:59:49 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=BFVNny OVevQn8qR9PDdF1c62y83Xs78iFL8coD4i6oA=; b=HlWBzAIiSBa6LmZ9N35Vtn lUBOdPg8wpBw6RmbExB/9jeA10H7rPbQzRuK/JkU7BpSy7zr4W/VFfDXVo8kN33U bL4cAumMip+HF7uMtbIhKwplicBhv3zIRIrP2RtPrryxwIzaCTqJvGGFmXtUn5Kh AB97y6OCyPGI9a0BNVF0XMdsH7+FEBbnKIBMCnloX6dfms8WNS37Q+1rp8QFVZSU h/HVS1jq93yamdt+GX9FfGjUXUU5wl/O8soO5zwHRU4XwG+kgphaoT1zdi6nBg6f JYf6TK7VmA6t4GKPLSEP5fnwK2djjUIsECe/l4CTKC6uJTiBQCLYdO82mdjvCnnQ == DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=BFVNny OVevQn8qR9PDdF1c62y83Xs78iFL8coD4i6oA=; b=m08eHh2frmfLqLyL9AkQ8Y W/vC5sjl9Muty19JWkg460AH+5oXHTlYP9nvV4fXXNJRXC267v/Q92UR3EWahAG8 hED1rLYSK/2ZwDJ9blx9JmjGgKbC0MAneM9KQmT5J7i5Jqz8DiRi1U6kdhJBaDwe f4RmA9FxgCHEa4Q74HfNHrk96mYuecPLg3VymozimX4U6sm+/jFszz+B0KF+J7a+ JLN7LLRryL6XUEMGHTE1IS3T/6XeFCOb0VZRH6jxg/+X7tICYazRlvKrB8Y6DdX+ AufxuCXpf0cUDXZd4w6isHxl7yeAVI02k6MGi6CvGZNpYJRLLD1g5GIYGCXxE3VA == X-ME-Proxy: X-ME-Sender: Date: Mon, 3 Sep 2018 13:59:43 +0000 From: Daniel Shahaf To: =?iso-8859-1?Q?J=F6rg?= Sommer Cc: zsh-users@zsh.org Subject: Re: Tab-completion for processes in /proc Message-ID: <20180903135943.ic7j54aodlijilmt@tarpaulin.shahaf.local2> References: <20180901155031.xq45aeaonsxxaqpu@alea.gnuu.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180901155031.xq45aeaonsxxaqpu@alea.gnuu.de> User-Agent: NeoMutt/20170113 (1.7.2) Jörg Sommer wrote on Sat, Sep 01, 2018 at 17:50:31 +0200: > is it possible to have tab-completion for the pid in /proc? I would like > to type `cat /proc/xte` and get a list of pids of all processes > matching `xte`. There is already logic for completing process names to pids, used by, e.g., «kill xte». I'm not sure what the easiest way to connect it to file completion would be.