Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
site-function for completion from specific directory
- X-seq: zsh-users 19034
- From: Eric Smith <es@xxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: site-function for completion from specific directory
- Date: Tue, 26 Aug 2014 15:00:24 +0200
- 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
Oh zshellers,
This is my use case.
I want to complete the following command;
mutt -f [foo]<tab>
so that it expands nothing or the string `foo' as if they were
~/Mail/<tab> or ~/Mail/foo<tab>
respectively.
How would I write a compdef site-function for this and also
ideally for my shell function wrapper around `mutt -f'?
--
Eric Smith
Messages sorted by:
Reverse Date,
Date,
Thread,
Author