summaryrefslogtreecommitdiff
path: root/completions/pine
blob: 392276259bac511825e41283ca2fae10bad8ac63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# PINE address-book completion                             -*- shell-script -*-

_pineaddr()
{
    local cur prev words cword
    _init_completion || return

    COMPREPLY=( $( compgen -W '$( awk "{print \$1}" ~/.addressbook \
        2>/dev/null)' -- "$cur" ) )
} &&
complete -F _pineaddr -o default pine alpine

# ex: ts=4 sw=4 et filetype=sh