Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Tab-completion for processes in /proc



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.



Messages sorted by: Reverse Date, Date, Thread, Author