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

Re: zsh completer for ps, procees viewer



On 2013-03-01 at 23:50 -0500, joe M wrote:
> It is located at /usr/share/zsh/5.0.2/functions/Completion/Unix/_ps in
> my system.
> 
> Is there a completion file for ps, the process viewer, floating around?

Yes, it's in the Solaris/ sub-directory, which normally comes first in
$fpath and so is used in preference to the Unix/ one, even on BSD
systems.

As to _why_ it's Solaris/_ps for ps(1) and Unix/_ps for handling
postscript: I do not know.

If your OS has stripped the Solaris/ items, then you're missing
completions for gcore, ptree and others, not just the real ps(1)
completions.

Oh, and the Solaris/_ps only handles ps options with a dash, but even
BSDs take those variants these days.

-Phil



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