Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh Newbie wants to complete mutt email addresses or aliases
- X-seq: zsh-users 4904
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: zsh Newbie wants to complete mutt email addresses or aliases
- Date: Tue, 30 Apr 2002 13:17:26 -0700 (PDT)
- In-reply-to: <20020430193409.GA3875@xxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Sender: schaefer@xxxxxxxxxxxxxxxx
zstyle -e ':completion::complete:mutt:*:' users \
'reply=($(perl -ne '\''print "$1\n"
if /^\s+alias\s+(\S+)\s+.*/;'\'' ~/.muttrc 2>/dev/null)
otheraddress@xxxxxxxxxxxxxxx
anotheraddress@xxxxxxxxxxxxxxxxx
etcetc@xxxxxxxxxxxxxx)'
You can probably figure out how to extend this to emit the addresses from
the muttrc alias lines instead of just the alias keywords.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author