Skip to content

Instantly share code, notes, and snippets.

@LincolnYe
Forked from steinar/bazel-oh-my-zsh.md
Created May 14, 2024 06:41
Show Gist options
  • Select an option

  • Save LincolnYe/f8bbad72f897b255aca577b92c2d85ab to your computer and use it in GitHub Desktop.

Select an option

Save LincolnYe/f8bbad72f897b255aca577b92c2d85ab to your computer and use it in GitHub Desktop.
Bazel command line auto-complete for oh-my-zsh

To get Bazel command and target auto-completion in zsh with oh-my-zsh, the offical zsh script as plugin:

  1. mkdir -p ~/.oh-my-zsh/plugins/bazel
  2. wget -P ~/.oh-my-zsh/plugins https://raw.githubusercontent.com/bazelbuild/bazel/master/scripts/zsh_completion/_bazel
  3. Add bazel to the plugins list in your ~/.zshrc
plugins=(git autojump colored-man-pages bazel)
  1. Restart zsh: zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment