1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2025-12-13 10:50:40 +01:00

Merge pull request #3067 from tacgnol/AWS

Fix issue with homebrew installed awscli
This commit is contained in:
Robby Russell
2014-08-31 10:17:21 -07:00

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