Commit f4922073 authored by Douglas S.D. Hall's avatar Douglas S.D. Hall
Browse files

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
parent 1b7a3ea9
_homebrew-installed() {
type brew &> /dev/null
}
_awscli-homebrew-installed() {
brew --prefix awscli &> /dev/null
}
export AWS_HOME=~/.aws export AWS_HOME=~/.aws
function agp { function agp {
...@@ -14,4 +22,9 @@ function aws_profiles { ...@@ -14,4 +22,9 @@ function aws_profiles {
} }
compctl -K aws_profiles asp compctl -K aws_profiles asp
source `which aws_zsh_completer.sh`
if _homebrew-installed && _awscli-homebrew-installed ; then
source $(brew --prefix)/opt/awscli/libexec/bin/aws_zsh_completer.sh
else
source `which aws_zsh_completer.sh`
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment