Skip to content

Commit 13f0bf0

Browse files
committed
simplify doc
1 parent 16003d0 commit 13f0bf0

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,10 @@ This script depends on the `bash-completion` framework, which is not installed o
8989
brew install gradle-completion
9090
```
9191
92-
3. **Configure your `.bash_profile`**. The `bash-completion` framework must be sourced in your profile. When you installed it, Homebrew provided the exact line to add. It will look similar to this:
92+
3. **Configure your `.bash_profile`**. The `bash-completion` framework must be sourced in your profile. When you installed it, Homebrew provided the exact line to add. Add this to your `~/.bash_profile`:
9393
```bash
94-
# For Apple Silicon Macs (M1/M2)
95-
echo '[[ -r "/opt/homebrew/etc/profile.d/bash_completion.sh" ]] && . "/opt/homebrew/etc/profile.d/bash_completion.sh"' >> ~/.bash_profile
96-
97-
# For Intel Macs
98-
echo '[[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh"' >> ~/.bash_profile
94+
echo '[[ -r "\$(brew --prefix)/etc/profile.d/bash_completion.sh" ]] && . "\$(brew --prefix)/etc/profile.d/bash_completion.sh"' >> ~/.bash_profile
9995
```
100-
Add the correct line for your system to your `~/.bash_profile`. **Do not source the `gradle-completion` script directly.** The main framework will find it automatically.
10196
10297
4. **Start a new terminal session** or run `source ~/.bash_profile`.
10398

0 commit comments

Comments
 (0)