Sha256: e79ff5a6f6f95283fd647a01ad6c9e5784a74813d317141d94da19d1c9f62aca

Contents?: true

Size: 302 Bytes

Versions: 7

Compression:

Stored size: 302 Bytes

Contents

# https://blog.jcoglan.com/2013/02/12/tab-completion-for-your-command-line-apps/

_troo_complete() {
  COMPREPLY=()
  local word="${COMP_WORDS[COMP_CWORD]}"
  local completions="$(troo autocomplete "$word")"
  COMPREPLY=( $(compgen -W "$completions" -- "$word") )
}

complete -f -F _troo_complete troo

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
troo-0.0.15 bin/completion.bash
troo-0.0.14 bin/completion.bash
troo-0.0.13 bin/completion.bash
troo-0.0.12 bin/completion.bash
troo-0.0.11 bin/completion.bash
troo-0.0.10 bin/completion.bash
troo-0.0.9 bin/completion.bash