-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate fish shell completion at build time
Fish shell completion for bazel previously relied on parsing bazel help text at run time, leading to latency of multiple seconds for first-time completion. This change adds a script that instead parses bazel help text and generates an appropriate fish completion script at build time, greatly reducing completion latency for the user. Fixes #12206 Fixes #12207 Fixes #12208 Fixes #12209 Fixes #12210 Closes #12249. PiperOrigin-RevId: 337468387
- Loading branch information
1 parent
331c7ed
commit 20febac
Showing
5 changed files
with
346 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# fish completions | ||
|
||
To enable bazel completions, copy //scripts/fish/completions/bazel.fish to | ||
~/.config/fish/completions/bazel.fish. | ||
To enable bazel completions, run `bazel build //scripts:fish_completion` and | ||
copy the resulting script from `bazel-bin/scripts/bazel.fish` to | ||
`~/.config/fish/completions/bazel.fish`. |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.