Install Bazel ZSH completion
1 2 3 4 5 6 7 8 |
( repo="bazelbuild/bazel"; raw="https://raw.githubusercontent.com/${repo}"; url="${raw}/master/scripts/zsh_completion/_bazel"; site_functions="/usr/share/zsh/site-functions"; wget "${url}" -O ${site_functions}/_bazel ) |
Afterwards, restart your ZSH shell session.
This also works if you have bazelisk
installed but bazel
has to be symlinked to the bazelisk
executable path.