Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Completion: How to emulate what this zstyle does natuarlly in a completion function?
- X-seq: zsh-workers 42824
- From: Doron Behar <doron.behar@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Completion: How to emulate what this zstyle does natuarlly in a completion function?
- Date: Sat, 26 May 2018 10:05:29 +0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mail-followup-to:mime-version :content-disposition:user-agent; bh=3+m/rCEv96NcutfZgcqrRbzgJvOFTEmsrlN8MAlDQm4=; b=s13SfMySzmjtN+8VdfaQ8OkCAghLVinxv254/1mS9x+kx14/sXuhZTW1N4bSq3/27T QALZSMGg6fE8T42SIVpfv58QVWvZnCRDH0Mt7960TnSvw2TSFhsSnx+8ckUuJeV/4G9x RT92DU9hpiLLHhYc+WRzhggQ0n+/Ktlaor0u49kXZ9kpFet7FWaj6qUrAX6hq+nNOsfr CsWO0y39ltU+t2x89WLwIjs1/zj1tC4QIsRd7BpNHHOZnW3Mhe09jsLIJ1gAFYWyNDXJ xdxCYxUXUqSJ8NbwDscANZfVwnHuvznd3W0oKtemx4xeFjG4wBAEeepGl8sAr8yWNmjw flPw==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mail-followup-to: zsh-workers@xxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Since I first installed zsh, probably when I ran `zsh-newuser-install`,
I had the following line in my `~/.zshrc`:
zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
I know that if I remove this line, the `kill` command's completion is
pretty poor and it completes processes from the current tty only. With
this statement in my `~/.zshrc`, `kill` is completed with all processes
of the current user.
My question is: How do I emulate a completion like that naturally within
a completion function? I want a certain command's option argument
completion to suggest all processes the current user just like when I
try to complete `kill`.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author