2022-03-29 17:23:45 +02:00
|
|
|
# Bazel plugin
|
2020-05-23 22:41:42 +02:00
|
|
|
|
2024-11-19 21:20:58 +01:00
|
|
|
This plugin adds completion and aliases for [bazel](https://bazel.build), an open-source build and test tool
|
|
|
|
that scalably supports multi-language and multi-platform projects.
|
2022-03-29 17:23:45 +02:00
|
|
|
|
|
|
|
To use it, add `bazel` to the plugins array in your zshrc file:
|
|
|
|
|
|
|
|
```zsh
|
|
|
|
plugins=(... bazel)
|
|
|
|
```
|
|
|
|
|
|
|
|
The plugin has a copy of [the completion script from the git repository][1].
|
|
|
|
|
|
|
|
[1]: https://github.com/bazelbuild/bazel/blob/master/scripts/zsh_completion/_bazel
|
2024-02-01 17:37:37 +01:00
|
|
|
|
|
|
|
## Aliases
|
|
|
|
|
2024-11-19 21:20:58 +01:00
|
|
|
| Alias | Command | Description |
|
|
|
|
| ----- | ------------- | ------------------------- |
|
|
|
|
| bzb | `bazel build` | The `bazel build` command |
|
|
|
|
| bzt | `bazel test` | The `bazel test` command |
|
|
|
|
| bzr | `bazel run` | The `bazel run` command |
|
|
|
|
| bzq | `bazel query` | The `bazel query` command |
|
|
|
|
|
|
|
|
## Functions
|
|
|
|
|
|
|
|
| Function | Description |
|
|
|
|
| -------- | -------------------------------- |
|
|
|
|
| sri-hash | Generate SRI hash used by bzlmod |
|