_op() {
  cur="${COMP_WORDS[COMP_CWORD]}"

  if [[ -z $OCTOPOLO_0_0_1_COMMANDS ]]; then
    OCTOPOLO_0_0_1_COMMANDS=`op help -c`
  fi

  COMPREPLY=($(compgen -W "${OCTOPOLO_0_0_1_COMMANDS}" -- ${cur}))
  return 0
}

complete -F _op op

_op() {
  cur="${COMP_WORDS[COMP_CWORD]}"

  if [[ -z $OCTOPOLO_0_0_1_COMMANDS ]]; then
    OCTOPOLO_0_0_1_COMMANDS=`op help -c`
  fi

  COMPREPLY=($(compgen -W "${OCTOPOLO_0_0_1_COMMANDS}" -- ${cur}))
  return 0
}

complete -F _op op
complete -F _op octopolo

Allow shell completetion for octopolo bin
Allow shell completetion for octopolo bin
