[neomutt-devel] bash autocompletion for configure.autosetup

Richard Russon rich at flatcap.org
Sat Oct 21 14:10:27 CEST 2017


If you're a bash user, this may be helpful.
Note: it doesn't complete with --with-X options.

# Auto-complete arguments to configure.autosetup
_autosetup_complete()
{
    local cur
    _get_comp_words_by_ref cur

    COMPREPLY=( $( compgen -W '--help --prefix= --logging --disable-doc --full-doc --flock --disable-fcntl --fmemopen --locales-fix --disable-pgp --disable-smime --mixmaster --homespool --ssl --gnutls --gpgme --gss --sasl --lua --notmuch --disable-nls --disable-idn --bdb --gdbm --kyotocabinet --lmdb --qdbm --tokyocabinet --everything' -- "$cur" ) )
}

complete -F _autosetup_complete configure.autosetup

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://mailman.neomutt.org/pipermail/neomutt-devel-neomutt.org/attachments/20171021/b15c7c6a/attachment.sig>


More information about the neomutt-devel mailing list