summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Walker <matt@suckerfish.net>2014-09-03 12:01:29 -0700
committerMatt Walker <matt@suckerfish.net>2014-09-03 12:01:29 -0700
commit87fb118dd252d7e9b658c66c51b5e3cb905f10fb (patch)
tree684737c02ac92610607180f5a2bb20d2e47e27e1
parenta8ef111a796acbd7d235b52e5864c6af4b911aa5 (diff)
downloadzsh-87fb118dd252d7e9b658c66c51b5e3cb905f10fb.tar.gz
zsh-87fb118dd252d7e9b658c66c51b5e3cb905f10fb.tar.bz2
zsh-87fb118dd252d7e9b658c66c51b5e3cb905f10fb.zip
Changed brew cmd to properly report if awscli is installed via homebrew
-rw-r--r--plugins/aws/aws.plugin.zsh6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/aws/aws.plugin.zsh b/plugins/aws/aws.plugin.zsh
index 8b57d7db1..de786725f 100644
--- a/plugins/aws/aws.plugin.zsh
+++ b/plugins/aws/aws.plugin.zsh
@@ -3,19 +3,17 @@ _homebrew-installed() {
}
_awscli-homebrew-installed() {
- brew --prefix awscli &> /dev/null
+ brew list awscli &> /dev/null
}
export AWS_HOME=~/.aws
function agp {
echo $AWS_DEFAULT_PROFILE
-
}
function asp {
export AWS_DEFAULT_PROFILE=$1
- export RPROMPT="<aws:$AWS_DEFAULT_PROFILE>"
-
+ export RPROMPT="<aws:$AWS_DEFAULT_PROFILE>"
}
function aws_profiles {
reply=($(grep profile $AWS_HOME/config|sed -e 's/.*profile \([a-zA-Z0-9_-]*\).*/\1/'))