_ynew_tab_complete () {
    local cur prev opts
    COMPREPLY=()
    cur="${COMP_WORDS[COMP_CWORD]}"
    words=''
    if [ -d ~/.ynew ] && [ $COMP_CWORD -le 1 ] ; then
        words=$(ls ~/.ynew)
    fi

    COMPREPLY=( $(compgen -W "${words}" -- ${cur}) )
    return 0
}
complete -F _ynew_tab_complete ynew
