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 4911
- From: Bruno Bonfils <asyd@xxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: zsh Newbie wants to complete mutt email addresses or aliases
- Date: Wed, 1 May 2002 10:41:18 +0200
- In-reply-to: <20020430165402.K63229@xxxxxxxxxx>
- Mail-followup-to: Bruno Bonfils <asyd@xxxxxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20020430143132.A1336@xxxxxxxxxxxxxxxxxx> <Pine.LNX.4.44.0204301442530.19152-100000@xxxxxxxxxxxxxxxx> <20020430165402.K63229@xxxxxxxxxx>
I wrote this :
# added by asyd (20020304)
if [ -r ~/.muttrc ]; then
# use cache
if ( [[ ${+_list_alias} -eq 0 ]] || _cache_invalid mutt_alias ) &&
! _retrieve_cache mutt_alias; then
_list_alias=(${(o)${${(M)${(f)"$(< ~/.muttrc)"}##alias*}/alias /}%% *})
_store_cache mutt_alias _list_alias
fi
_wanted alias expl 'alias name' compadd -q -S, $_list_alias
fi
--
Bruno Bonfils
Admin Sys GNU/Linux
http://www.debian-fr.org/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author