Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Using the same completion function for various commands
- X-seq: zsh-users 15628
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>
- Subject: Re: Using the same completion function for various commands
- Date: Mon, 06 Dec 2010 20:39:21 +0100
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1291664362; bh=I+VlUpQkAy15APJWddMz6pbUo+DZybPeEwGwdhvwBeY=; h=X-Yahoo-Newman-Id:Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Received:cc:In-reply-to:From:References:To:Subject:Date:Message-ID; b=T6AFiYTJeJ2cnnfFEWZqke5QMr/OZ4KEgzMoHG24bBJNpWG4koBh/i1WHw3FZi/yFtdSScTLPT6QD1fg1R06QO5vTMR8gnalcUxVG3YHH1lATy1AXIqaTkc9/pfgVtezVQzT2qHl9AjZBNTFmHiu0hoZ9Noc/5KX2B37nVeL1Ls=
- In-reply-to: <AANLkTin8Kn88NXsK4V4Toos0-ZB2hj4RvhX5QxLarq1N@xxxxxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <201012061512.21791.mrichter@xxxxxxxxxxxxxxxxxxxxxxxx> <AANLkTimY=rEETn1uOdkDJ33kGE=YUDAvevsBvvvMU7YL@xxxxxxxxxxxxxx> <AANLkTim1Ac1-VOkRQ1NXn_qL6-EV06bagVkK7y_UThwB@xxxxxxxxxxxxxx> <AANLkTin+NCoBRzx90fo+s0z7urCCoTA6T3cXTYdt_VD2@xxxxxxxxxxxxxx> <20101206151124.389fd287@xxxxxxxxxxxxxxxxxxxxxxxxx> <AANLkTin8Kn88NXsK4V4Toos0-ZB2hj4RvhX5QxLarq1N@xxxxxxxxxxxxxx>
Mikael Magnusson wrote:
> Ah, er, right. But. Is there any way to combine -p and saying foo=du ?
> When I tried compdef _du -p 'foo_*=du' nothing happened.
zstyle ':completion:*:foo_*::variant' command du --version
Peter wrote:
> Why we would ever prefer $words[1] to $service, when this seems
> to be what $service is for?
Aside from the case Bart mentioned, there's also cases like:
compdef gdu=du
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author