Home

Awesome

Zsh bitbake completion

CI Badge GitHub Latest Release)

This plugins adds completion for the bitbake and devtool command line tools in the Z shell.

Installation

Configuration

How it works

Completion of arguments works normally as any other zsh completion, with additional suggestions when possible (common bitbake tasks, debug domains…).

Completion of recipes works differently as it depends on the environment. When trying to complete a recipe for the first time in the current environment, the bitbake-layers show-recipes command is run to fetch the complete list of recipes.

This command execution has a few requirements (not run and quietly exited if unmet):

This creates a file $BUILDDIR/.recipe-cache that stores the list of recipes. Recipes are read from this file to enable completion. This file is not automatically updated if recipes are added or removed in the current environment (it would be too slow and costly). File must be removed to be regenerated on the next completion.