From b5e6392f2140b7aa49c248aa6c232a6922d3311b Mon Sep 17 00:00:00 2001
From: Markus Hofbauer <markus.hofbauer@luminartech.com>
Date: Thu, 1 Feb 2024 17:37:37 +0100
Subject: [PATCH] feat(hazel): add some aliases (#12070)

---
 plugins/bazel/README.md        | 12 ++++++++++--
 plugins/bazel/bazel.plugin.zsh |  5 +++++
 2 files changed, 15 insertions(+), 2 deletions(-)
 create mode 100644 plugins/bazel/bazel.plugin.zsh

diff --git a/plugins/bazel/README.md b/plugins/bazel/README.md
index fc375d21..eba4175b 100644
--- a/plugins/bazel/README.md
+++ b/plugins/bazel/README.md
@@ -1,7 +1,6 @@
 # Bazel plugin
 
-This plugin adds completion for [bazel](https://bazel.build), an open-source build and
-test tool that scalably supports multi-language and multi-platform projects.
+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.
 
 To use it, add `bazel` to the plugins array in your zshrc file:
 
@@ -12,3 +11,12 @@ 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
+
+## Aliases
+
+| 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                              |
diff --git a/plugins/bazel/bazel.plugin.zsh b/plugins/bazel/bazel.plugin.zsh
new file mode 100644
index 00000000..d239a06b
--- /dev/null
+++ b/plugins/bazel/bazel.plugin.zsh
@@ -0,0 +1,5 @@
+# Aliases for bazel
+alias bzb='bazel build'
+alias bzt='bazel test'
+alias bzr='bazel run'
+alias bzq='bazel query'