aboutsummaryrefslogtreecommitdiff
path: root/bash/bash_completion.d/_abook_addresses.bash
blob: 8e341172a1efc1d4972ad312e5b3d140058db113 (plain)
1
2
3
4
5
6
7
8
9
10
# Email addresses from abook(1)
_abook_addresses() {
    while IFS=$'\t' read -r address _ ; do
        case $address in
            "${COMP_WORDS[COMP_CWORD]}"*)
                COMPREPLY[${#COMPREPLY[@]}]=$address
                ;;
        esac
    done < <(abook --mutt-query \@)
}