Skip to content

Instantly share code, notes, and snippets.

@steinar
Created August 12, 2019 18:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steinar/b2977a98d3aa9a8da86413d41368fdeb to your computer and use it in GitHub Desktop.
Save steinar/b2977a98d3aa9a8da86413d41368fdeb 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
@jbsummoner
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment