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 15616
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: JÃrÃmie Roquet <arkanosis@xxxxxxxxx>
- Subject: Re: Using the same completion function for various commands
- Date: Mon, 6 Dec 2010 16:03:51 +0100
- Cc: Zsh Users <zsh-users@xxxxxxx>, mrichter@xxxxxxxxxxxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=eOsGX1dRFbGzn4jzWIfATajMfL/yia103QMRJM+hvbU=; b=kAmR8iPPhU6pDix6vd5qQWPRc4YWqkznNG5GtjFSA1TLAQXrzml03nfOrKL5LqcHLh RygUFrsyWAHDoGS+fPkIgVzhteFFOEap2mucqhoaHj7GFLUdcbIdEIqxzRKqmPzQr306 bW4GBnQdmBX0G8JRjUAiXSciqWGF+tyhDHMW8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=CMAaLYtP8mev4HPr/VM3Rw8V89SWaxrf7i7ooVmrwMNJJwdlrORlTKK90/4TbqqyHW CktCz4wpUqIlbr9LjYN1A03gNZvvjAxqxTmnjCC/ej+IxIJT/vx5WXTjNXiSdmcBq8l/ IQFpCQe445CrUfII4Dm+oVlvE58GVJWFPIcMY=
- In-reply-to: <AANLkTim1Ac1-VOkRQ1NXn_qL6-EV06bagVkK7y_UThwB@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>
2010/12/6 JÃrÃmie Roquet <arkanosis@xxxxxxxxx>:
> Hi,
>
> 2010/12/6 Mikael Magnusson <mikachu@xxxxxxxxx>:
>> You can also do this in your .zshrc instead of in the completer if you
>> wish, just write
>> compdef _foo -p 'foo_*'
>>
>> At least that's what the documentation says, it doesn't seem to work that well.
>
> It works fine for me with 4.3.10, did I miss something?
When i tried compdef _du -p foo_\*, i only got single-letter options completed.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author