1 # simple bash autocompletions file for the OE recipes. It can be
2 # inserted into the default profile.sh, or sourced in the same file.
7 if [[ $OE_HOME ]]; then
8 local cur prev general exact words
10 cur="${COMP_WORDS[COMP_CWORD]}"
11 prev="${COMP_WORDS[COMP_CWORD-1]}"
12 general=$(ls $OE_HOME/openembedded/recipes)
13 exact=$(find $OE_HOME/openembedded/recipes -name $cur*.bb | xargs -I"@@" basename @@ '.bb')
14 words="$general $exact"
16 COMPREPLY=( $(compgen -W "$words" -- ${cur}) )
21 complete -F _bitbake bitbake