# prelink(8) completion -*- shell-script -*- proc _prelink { var cur = '', prev = '', words = '', cword = '', split = '' _init_completion -s || return match $prev { with -'?'|--help|--usage|-V|--version|-r|--reloc-only return with -b|--black-list|--dynamic-linker|--undo-output _filedir return with -c|--config-file _filedir conf return with -C|--cache _filedir cache return with --ld-library-path _filedir -d return } $split && return if [[ $cur == -* ]] { setglobal COMPREPLY = '( '$( compgen -W '$( _parse_help "$1" )' -- "$cur" ) ) [[ $COMPREPLY == *= ]] && compopt -o nospace return } _filedir } && complete -F _prelink prelink # ex: ts=4 sw=4 et filetype=sh