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

Homebrew Bash shell completion configuration #1065

Open
rdela opened this issue Oct 23, 2024 · 0 comments
Open

Homebrew Bash shell completion configuration #1065

rdela opened this issue Oct 23, 2024 · 0 comments

Comments

@rdela
Copy link

rdela commented Oct 23, 2024

While waiting for Homebrew’s formula to update to 2.0.2, I installed with curl and figured out adding :$HOME/.deno/bin to my path easily enough.

In “Configure Bash shell completion” section of deno completions doc:

deno completions bash > /usr/local/etc/bash_completion.d/deno.bash
source /usr/local/etc/bash_completion.d/deno.bash

…do we want to assume Homebrew people running its bash-completion formula [1] know/remember to run:

deno completions bash > ${HOMEBREW_PREFIX}/etc/bash_completion.d/deno.bash
source ${HOMEBREW_PREFIX}/etc/bash_completion.d/deno.bash

? …Or is this worth adding to docs? I figured it out, but it’s not immediately apparent how to update the command unless you understand all of the above well.

[1]: I use Homebrew’s bash so this link is to bash-completion@2, see other link for explanation:

If you are using Homebrew’s bash as your shell (i.e. bash >= v4) you should use the bash-completion@2 formula instead.

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

No branches or pull requests

1 participant