1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-11 00:10:08 +00:00

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
This commit is contained in:
Douglas S.D. Hall 2014-08-30 17:20:28 +01:00
parent 1b7a3ea99a
commit f492207329

View file

@ -1,3 +1,11 @@
_homebrew-installed() {
type brew &> /dev/null
}
_awscli-homebrew-installed() {
brew --prefix awscli &> /dev/null
}
export AWS_HOME=~/.aws
function agp {
@ -14,4 +22,9 @@ function aws_profiles {
}
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