Skip to content

Commit

Permalink
<type>(<scope>): <subject>
Browse files Browse the repository at this point in the history
fix: gcloud path on arm64
  • Loading branch information
lodotek committed Jun 14, 2022
1 parent 6544fef commit 85f4264
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ It will :
[localhost]
yourMacHostName gpg_key=${your-local-gpg-key}
```
* then go to `~/src/macos-devenv-ansible-provisioner`.
* run `ansible-playbook main.yml --diff --verbose --inventory ~/.ansible/inventory --limit $(hostname)`.
* then go to `~/src/macos-devenv-ansible-provisioner`
* run `ansible-playbook main.yml --diff --verbose --inventory ~/.ansible/inventory --limit $(hostname)`

## Tips

Expand Down
11 changes: 9 additions & 2 deletions roles/mac-dev-playbook/files/.zshrc.d/gcloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,12 @@ alias gclo="gcloud"
alias gcloalu="gcloud auth login --update-adc"

# Autocompletion
source '/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc'
source '/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc'


if [[ $OSTYPE == darwin* && $CPUTYPE == arm64 ]]; then
source '/opt/homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc'
source '/opt/homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc'
else
source '/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc'
source '/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc'
fi

0 comments on commit 85f4264

Please sign in to comment.