# vi: ft=bash _tofi() { local cur prev words cword _init_completion || return words=( --help --config --include --output --scale --anchor --background-color --corner-radius --font --font-size --num-results --selection-color --selection-match-color --selection-padding --selection-background --outline-width --outline-color --prompt-text --prompt-padding --placeholder-text --placeholder-color --result-spacing --min-input-width --border-width --border-color --text-color --width --height --exclusive-zone --margin-top --margin-bottom --margin-left --margin-right --padding-top --padding-bottom --padding-left --padding-right --horizontal --hide-cursor --history --fuzzy-match --require-match --hide-input --hidden-character --drun-launch --terminal --hint-font --late-keyboard-init --multi-instance ) case "${prev}" in --font) ;& --include) ;& --config|-c) _filedir return 0 ;; --help|-h) ;; --*) return 0 ;; esac case "${cur}" in -[ch]) COMPREPLY=($cur) ;; *) COMPREPLY=($(compgen -W "${words[*]}" -- ${cur})) return 0 ;; esac } complete -F _tofi tofi complete -F _tofi tofi-run complete -F _tofi tofi-drun