#compdef infocmp -value-,TERM,-default-

local desc expl

desc=( $TERMINFO ~/.terminfo $TERMINFO_DIRS /usr/{,share/}{,lib/}terminfo /{etc,lib}/terminfo )

_wanted terminals expl 'terminal name' \
    compadd "$@" - $desc/*/*(N:t)
