Skip to content

Commit 7458d24

Browse files
authored
Merge pull request #35 from lamhaison/fix/readme-how-to-install-with-home-brew
Update README with clearer installation instructions
2 parents 6b68c22 + e0ee3d9 commit 7458d24

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,20 @@ echo "source /opt/lamhaison-tools/aws-cli-utils/main.sh" >> ~/.zshrc
8484
#### Install
8585
```
8686
brew tap lamhaison/formulae
87-
brew install lamhaison/formulae/aws-cli-utils
87+
brew install lamhaison/formulae/aws-cli-utils # Make sure you flow the the instruction when it is installed completely, we need that for the next step
88+
# Example
89+
#...
90+
#==> Caveats
91+
#Add these lines to ~/.bashrc or ~/.zshrc or ~/.bash_profile
92+
#source "$(which aws-cli-utils.sh)" "/opt/homebrew/Cellar/aws-cli-utils/$(brew info aws-cli-utils | head -1 | awk -F "stable " '{print $2}')/bin" "${HOME}" "True"
93+
#...
8894
```
8995
## Load when start an Iterm terminal
90-
Add these lines to ~/.bashrc or ~/.zshrc or ~/.bash_profile
91-
```
92-
source "$(which lhs-helpful-commandlines.sh)" "/opt/homebrew/Cellar/lhs-helpful-commandlines/$(brew info lhs-helpful-commandlines | grep -E '==> .*: stable (.*)$' | sed -E 's|==> .*: stable (.*)$|\1|g')" "True" "True"
96+
Add these lines to ~/.bashrc or ~/.zshrc or ~/.bash_profile from the previous step `source ....`
97+
It depends on what you get when running brew install. Here is the example
9398

99+
```bash
100+
source "$(which aws-cli-utils.sh)" "/opt/homebrew/Cellar/aws-cli-utils/$(brew info aws-cli-utils | head -1 | awk -F "stable " '{print $2}')/bin" "${HOME}" "True"
94101
```
95102

96103
### Re-install the latest version

0 commit comments

Comments
 (0)