X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=completion%2Fzsh%2F_email-notmuch;fp=completion%2Fzsh%2F_email-notmuch;h=1cd0d78f7e95e87c4cafd000f1f968cdbd94546e;hb=c201ee2193f4868fca082d3fe094a8ad04ad58cc;hp=0000000000000000000000000000000000000000;hpb=0ff3786ac03684245488f09d59be98325877656b;p=notmuch diff --git a/completion/zsh/_email-notmuch b/completion/zsh/_email-notmuch new file mode 100644 index 00000000..1cd0d78f --- /dev/null +++ b/completion/zsh/_email-notmuch @@ -0,0 +1,9 @@ +#autoload + +local expl +local -a notmuch_addr + +notmuch_addr=( ${(f)"$(notmuch address --deduplicate=address --output=address -- from:/$PREFIX/)"} ) + +_description notmuch-addr expl 'email address (notmuch)' +compadd "$expl[@]" -a notmuch_addr