Skip to content

Commit

Permalink
Add fish shell completion hint to installer
Browse files Browse the repository at this point in the history
See original request in
#12249 (comment)

Closes #12267.

PiperOrigin-RevId: 337467923
  • Loading branch information
akirabaruah authored and copybara-github committed Oct 16, 2020
1 parent 7753762 commit 331c7ed
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/packages/template_bin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,15 @@ cat <<EOF
Bazel is now installed!
Make sure you have "${bin}" in your path. You can also activate bash
completion by adding the following line to your ${BASHRC}:
Make sure you have "${bin}" in your path.
For bash completion, add the following line to your ${BASHRC}:
source ${base}/bin/bazel-complete.bash
For fish shell completion, link this file into your
${HOME}/.config/fish/completions/ directory:
ln -s ${base}/bin/bazel.fish ${HOME}/.config/fish/completions/bazel.fish
See http://bazel.build/docs/getting-started.html to start a new project!
EOF
exit 0

0 comments on commit 331c7ed

Please sign in to comment.