_pixelterm() { local cur opts COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" opts="-h --help --version -V -D --dither --preload --alt-screen --clear-workaround --work-factor --protocol --gamma --config" if [[ "$cur" == -* ]]; then COMPREPLY=( $(compgen -W "$opts" -- "$cur") ) return 0 fi COMPREPLY=( $(compgen -f -- "$cur") ) } complete -F _pixelterm pixelterm