Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh Newbie wants to complete mutt email addresses or aliases



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