Andrew Purcell <andrew.purcell@grandroundshealth.com>
Committer
ncanceill <nicolas.canceill@ens-cachan.org>
Date
Message
Fix homebrew directory in aws plugin.
Sometimes the output of ``homebrew --prefix`` and ``homebrew --prefix
awscli`` don't match, and the second is the correct call.
Diff
1diff --git a/plugins/aws/aws.plugin.zsh b/plugins/aws/aws.plugin.zsh
2index 0ae18dd561f9a052cb5a49a01b9ac7c2cd47203f..e5e3f12364696e7ba2feb31eb8272dc5f7547808 100644
3--- a/plugins/aws/aws.plugin.zsh
4+++ b/plugins/aws/aws.plugin.zsh
5@@ -22,7 +22,7 @@ function aws_profiles {
6 compctl -K aws_profiles asp
7 8 if _homebrew-installed && _awscli-homebrew-installed ; then
9- _aws_zsh_completer_path=$(brew --prefix)/opt/awscli/libexec/bin/aws_zsh_completer.sh
10+ _aws_zsh_completer_path=$(brew --prefix awscli)/libexec/bin/aws_zsh_completer.sh
11 else
12 _aws_zsh_completer_path=$(which aws_zsh_completer.sh)
13 fi