zsh-users
 help / color / mirror / code / Atom feed
* Tab-completion for processes in /proc
@ 2018-09-01 15:50 Jörg Sommer
  2018-09-03 13:59 ` Daniel Shahaf
  0 siblings, 1 reply; 2+ messages in thread
From: Jörg Sommer @ 2018-09-01 15:50 UTC (permalink / raw)
  To: zsh-users

[-- Attachment #1: Type: text/plain, Size: 184 bytes --]

Hi,

is it possible to have tab-completion for the pid in /proc? I would like
to type `cat /proc/xte<TAB>` and get a list of pids of all processes
matching `xte`.

Regards Jörg

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Tab-completion for processes in /proc
  2018-09-01 15:50 Tab-completion for processes in /proc Jörg Sommer
@ 2018-09-03 13:59 ` Daniel Shahaf
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Shahaf @ 2018-09-03 13:59 UTC (permalink / raw)
  To: Jörg Sommer; +Cc: zsh-users

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<TAB>` 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<TAB>».  I'm not sure what the easiest way to connect
it to file completion would be.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-09-03 13:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-01 15:50 Tab-completion for processes in /proc Jörg Sommer
2018-09-03 13:59 ` Daniel Shahaf

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).