Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Add some tips in `compadd` docs about groups
- X-seq: zsh-workers 53637
- From: RocketDev <ma2014119@xxxxxxxxxxx>
- To: dana <dana@xxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: Add some tips in `compadd` docs about groups
- Date: Mon, 19 May 2025 19:05:42 +0800
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=52832T8u7JR0RpGRwihKJLQQjvbvu52LQWERy2WtPZ0=; b=S9v0I2SOI9QZOMEoxo8l0Ys+j0+bs+Z7p0xo56j4GQF2DIjjbg9cPkh1JHvz619uTYryPfdQlZVoMbdBBHJBQbVcxcZSN54VuRHtqnz6KQlTCOLhdzkb9HxCC5afYLK6tYmXfxgjE31SUwjKN1YfOjGEC7JOeTV0dZcN6Unmmhf+l1qWr7t+8eFFYKcF/58viuD4ZFVIkm3ieCo9/TRiNghRouR7mUxNPTI0MakR1nQla3AFDb+l67zcGZPY4L031ze74UFjl9tmq2nP+ngcQurp29Q5ywnYmaPiGmxW1DPbWn0MD79sykCMy11bK7yjYqivhclO6XDcCneWRB5KzA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=jkUJxJzjCKcY6f8oItiVhpkxLC05POXqNIVElTv/kMhPTDa9RmKR8N9C6TH/SCmTxRQKvuM/l224Le+t9FK97rWv6QI9/fxHRjpEE8HxEnHSd53Kc6Sp0siu/aDeBgRtz7/iwkOAD0sSt05Vc+bisN4aO6REZ+syXm5ePCBoyZ5itKSz3E1hdpTDbuTD4jPDX7TbHLWLFIRrAsK3dAvqD0wARwzFgLIqMCl1BASfjYD4ImDNEmGnmtYJM0IL7tmzIwR0Z9kfQfQI2e3yP6IAaTDRerq7QGQQzK5x/eXzAk9Zhspp+SQOFyhHsfDCfuCwMARxrBDiVkaEvCXJ65BG1g==
- Archived-at: <https://zsh.org/workers/53637>
- In-reply-to: <62184dff-709d-44b0-988e-6dcad4f1b27b@app.fastmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <SY0P300MB091044FD11524D3E15CB04F7EE96A@SY0P300MB0910.AUSP300.PROD.OUTLOOK.COM> <SY0P300MB0910F4200448174E61D34D12EE9CA@SY0P300MB0910.AUSP300.PROD.OUTLOOK.COM> <62184dff-709d-44b0-988e-6dcad4f1b27b@app.fastmail.com>
> 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