aboutsummaryrefslogtreecommitdiffhomepage
path: root/site/docs/install.md
diff options
context:
space:
mode:
authorGravatar Damien Martin-Guillerez <dmarting@google.com>2015-04-10 08:46:14 +0000
committerGravatar Lukacs Berki <lberki@google.com>2015-04-13 11:43:12 +0000
commitc9027b1a1abff2feca5feaa6c3b6022405386b98 (patch)
treeb0e1a3e6bef80fb8d38b94fed6eaeed9ca1c5ff2 /site/docs/install.md
parentf7afc7ace96c042ec3d1aafd158ae19fcb41446e (diff)
Added a few lines to install.md on Bash completion
-- MOS_MIGRATED_REVID=90789198
Diffstat (limited to 'site/docs/install.md')
-rw-r--r--site/docs/install.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/site/docs/install.md b/site/docs/install.md
index 3e7fa0f95b..c98d9f1c9d 100644
--- a/site/docs/install.md
+++ b/site/docs/install.md
@@ -134,4 +134,15 @@ $ export PATH="$PATH:$HOME/bazel/output/bazel"
You can also add this command to your `~/.bashrc` file.
+## Getting bash completion
+
+Bazel come with a bash completion script. To install it:
+
+1. Build it with Bazel: `bazel build //scripts:bazel-complete.bash`.
+2. Copy the script `bazel-bin/scripts/bazel-complete.bash` to your
+ completion folder (`/etc/bash_completion.d` directory under Ubuntu).
+ If you don't have a completion folder, you can copy it wherever suits
+ you and simply insert `source /path/to/bazel-complete.bash` in your
+ `~/.bashrc` file (under OS X, put it in your ~/.bash_profile file).
+
For more information, see [Getting started](getting-started.html).