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

Re: Add some tips in `compadd` docs about groups



> sorry, i meant one of the general-purpose helper functions for the
> completion system itself, like _describe or _wanted. 

Oh, I don't know _wanted... _wanted works perfectly.

> but i don't know how common it is that you need to
> exclude kernel threads for one specific tool.

I think it might be quite useful. A root user can kill every process, except 
for *init* and *kernel threads*, so this command may be useful for root users 
when TAB on `kill`. Btw, even for normal users, they may want to kill 
processes which are not on current tty, for example, browers or not-responding 
gdb.

> if a user wants to do it
> generally (which they might because they're usually pointless) they can
> set the command style on the processes tag:
> 
>   zstyle ':completion:*:*:processes' command 'ps -N -p2 --ppid=2'

Sorry, I don't master zstyle and have completely no idea about these "magic" 
solutions, as there is barely no material about zstyle on the internet.


Sincerely,
RocketDev

Attachment: signature.asc
Description: This is a digitally signed message part.



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