tree: 8375219a320350d9314f868f6fc2b9f9ef532c1e [path history] [tgz]
  1. _fx
  2. _fx_boot
  3. _fx_box
  4. _fx_build
  5. _fx_exec
  6. _fx_log
  7. _fx_mkzedboot
  8. _fx_netaddr
  9. _fx_set
  10. _fx_symbolize
  11. _fx_use
  12. _fx_verify-build-packages
  13. README.md
zsh-completion/README.md

Zsh Completion

Partial Zsh completion support for the fx tool.

Use

Add //scripts/zsh-completion/ to your fpath before running compinit. For example:

fpath+=( ~/fuchsia/scripts/zsh-completion )

Improve

Subcommands are completed by looking in //scripts/devshell/ but there isn't completion for most subcommand arguments. To add completion for fx foo write a new autoload function in //scripts/zsh-completion/_fx_foo. It will be called by the _fx completion function when needed. The ${fuchsia_dir} and ${fuchsia_build_dir} local variables will be available to the subcommand completion function.