提交 6d5d67a3 编写于 作者: R Robby Russell

Merge pull request #3067 from tacgnol/AWS

Fix issue with homebrew installed awscli
_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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册