tree: b05994bcb2f2561da2f2e6a56ceda2a07033d078 [path history] [tgz]
  1. README.md
  2. _fx
  3. _fx_boot
  4. _fx_build
  5. _fx_build-push
  6. _fx_cp
  7. _fx_exec
  8. _fx_format-code
  9. _fx_log
  10. _fx_mkzedboot
  11. _fx_netaddr
  12. _fx_oldset
  13. _fx_push-package
  14. _fx_push-package-no-publish
  15. _fx_reboot
  16. _fx_run-test
  17. _fx_set
  18. _fx_set-device
  19. _fx_symbolize
  20. _fx_use
  21. _fx_verify-build-packages
scripts/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 //tools/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.