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

Basic instructions don't work with most recent Homebrew #151

Open
myrosia opened this issue Oct 10, 2024 · 2 comments
Open

Basic instructions don't work with most recent Homebrew #151

myrosia opened this issue Oct 10, 2024 · 2 comments

Comments

@myrosia
Copy link

myrosia commented Oct 10, 2024

My homebew installs the completion files into /opt/homebrew/Cellar/gradle-completion/1.4.1/etc/bash_completion.d/gradle

As a result the command in readme, [[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh", is not working.

There's an obvious workaround to make a symlink but I wonder if there are better instructions. New to the Macs from Linux and I don't know how to make it so that the version ID would not be hard-coded into paths.

brew --version
Homebrew 4.4.0
@myrosia
Copy link
Author

myrosia commented Oct 10, 2024

Figured it out, the correct magic line is

[[ -r "/opt/homebrew/etc/profile.d/bash_completion.sh" ]] && . "/opt/homebrew/etc/profile.d/bash_completion.sh"

@Tihana08
Copy link

Tihana08 commented Nov 9, 2024

My homebew installs the completion files into /opt/homebrew/Cellar/gradle-completion/1.4.1/etc/bash_completion.d/gradle

As a result the command in readme, [[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh", is not working.

There's an obvious workaround to make a symlink but I wonder if there are better instructions. New to the Macs from Linux and I don't know how to make it so that the version ID would not be hard-coded into paths.

brew --version
Homebrew 4.4.0

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

2 participants