b5e6392f2140b7aa49c248aa6c232a6922d3311b

Author
Markus Hofbauer <markus.hofbauer@luminartech.com>
Committer
GitHub <noreply@github.com>
Date

Message

feat(hazel): add some aliases (#12070)

Diff

 1diff --git a/plugins/bazel/README.md b/plugins/bazel/README.md
 2index fc375d2197706069a9dd94e94506e32cbaa734ba..eba4175bc50fcd576cb7c9a5acd3ba936618301b 100644
 3--- a/plugins/bazel/README.md
 4+++ b/plugins/bazel/README.md
 5@@ -1,7 +1,6 @@
 6 # Bazel plugin
 7 
 8-This plugin adds completion for [bazel](https://bazel.build), an open-source build and
 9-test tool that scalably supports multi-language and multi-platform projects.
10+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.
11 
12 To use it, add `bazel` to the plugins array in your zshrc file:
13 
14@@ -12,3 +11,12 @@ plugins=(... bazel)
15 The plugin has a copy of [the completion script from the git repository][1].
16 
17 [1]: https://github.com/bazelbuild/bazel/blob/master/scripts/zsh_completion/_bazel
18+
19+## Aliases
20+
21+| Alias   | Command                                | Description                                            |
22+| ------- | -------------------------------------- | ------------------------------------------------------ |
23+| bzb      | `bazel build`                          | The `bazel build` command                              |
24+| bzt      | `bazel test`                           | The `bazel test` command                               |
25+| bzr      | `bazel run`                            | The `bazel run` command                                |
26+| bzq      | `bazel query`                          | The `bazel query` command                              |
27diff --git a/plugins/bazel/bazel.plugin.zsh b/plugins/bazel/bazel.plugin.zsh
28new file mode 100644
29index 0000000000000000000000000000000000000000..d239a06b57e8d3cb1e1c93636f8985aeec5b2c93
30--- /dev/null
31+++ b/plugins/bazel/bazel.plugin.zsh
32@@ -0,0 +1,5 @@
33+# Aliases for bazel
34+alias bzb='bazel build'
35+alias bzt='bazel test'
36+alias bzr='bazel run'
37+alias bzq='bazel query'