Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default path to bazel-complete.bash not aligned with bazel docs #18

Closed
alexander-born opened this issue Apr 4, 2022 · 0 comments · Fixed by #19
Closed

Default path to bazel-complete.bash not aligned with bazel docs #18

alexander-born opened this issue Apr 4, 2022 · 0 comments · Fixed by #19

Comments

@alexander-born
Copy link
Contributor

The target completion did not work without explicitly setting the path via

bazel#SetBashCompletionPath('/etc/bash_completion.d/bazel-complete.bash')

I would suggest to change the default path according to the docs https://docs.bazel.build/versions/main/completion.html:

 if !exists('s:bash_completion_path')
-  let s:bash_completion_path = '/etc/bash_completion.d/bazel'
+  let s:bash_completion_path = '/etc/bash_completion.d/bazel-complete.bash'
 endif

See:

let s:bash_completion_path = '/etc/bash_completion.d/bazel'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant