
_notamocks(){ 
    COMPREPLY=()
    HLP=notamocks
    _get_comp_words_by_ref cur prev words cword
    
    if [[ "${cur}_" == '_' ]] ; then
    LIST="$(cat /etc/notamock.cfg |sed -n '/^[A-Z].*=.*/s/=.*/=/p')"LIST="$(cat /etc/notamock.cfg |sed -n '/^[A-Z].*=.*/s/=.*/=/p')"
    LIST="$LIST $(_parse_help $HLP)"
    elif [[ ${cur} == -* ]] ; then 
        LIST="$(_parse_help $HLP)"
    elif echo ${cur} |grep -Eq '^[[:alnum:]]+$' ; then 
        LIST="$(cat /etc/notamock.cfg |sed -n '/^[A-Z].*=.*/s/=.*/=/p')"LIST="$(cat /etc/notamock.cfg |sed -n '/^[A-Z].*=.*/s/=.*/=/p')"
    else
        _filedir
        return 0
    fi
    COMPREPLY=( $(compgen -W "$LIST" -- ${cur}) )
    return 0
}
complete -F _notamocks notamocks
