f49220732904ed254400f14e621ea5ebe9e4a5f5
Author Douglas S.D. Hall <doug.hall@gmail.com> Committer Douglas S.D. Hall <doug.hall@gmail.com> Date 2014-08-30 16:20 UTC
Message Amended to source the original aws_zsh_completer.sh rather than
the mangled version installed into $(brew-prefix)/bin if using
homebrew installed awscli on OSX.
This was discussed here - https://github.com/Homebrew/homebrew/issues/30268
Diff 1 diff --git a/plugins/aws/aws.plugin.zsh b/plugins/aws/aws.plugin.zsh
2 index 3f7fb199581c399916ceae46ff60ef3c3edd7485..8b57d7db1ca36fb62bf8f53b090a67c62939ed03 100644
3 --- a/plugins/aws/aws.plugin.zsh
4 +++ b/plugins/aws/aws.plugin.zsh
5 @@ -1,3 +1,11 @@
6 +_homebrew-installed() {
7 + type brew &> /dev/null
8 +}
9 +
10 +_awscli-homebrew-installed() {
11 + brew --prefix awscli &> /dev/null
12 +}
13 +
14 export AWS_HOME=~/.aws
15
16 function agp {
17 @@ -14,4 +22,9 @@ function aws_profiles {
18 }
19
20 compctl -K aws_profiles asp
21 -source `which aws_zsh_completer.sh`
22 +
23 +if _homebrew-installed && _awscli-homebrew-installed ; then
24 + source $(brew --prefix)/opt/awscli/libexec/bin/aws_zsh_completer.sh
25 +else
26 + source `which aws_zsh_completer.sh`
27 +fi