@@ -0,0 +1,31 @@
2+ local cur prev words opts LIBRARIES TARGETS
3+ _init_completion || return
5+ opts=$(_parse_help "$1")
7+ TARGETS="C Java bytecode javascript node"
17+ COMPREPLY=( $(compgen -W "${LIBRARIES}" -- ${cur}))
20+ COMPREPLY=( $(compgen -W "${TARGETS}" -- ${cur}))
24+ if [[ $cur == -* ]]; then
25+ COMPREPLY=($(compgen -W "${opts}" -- ${cur}))
31+complete -o default -F _idris idris