From 6f18ab183aa3fb0d48112c4f18b85abdcb60b75c Mon Sep 17 00:00:00 2001 From: Brandon W Maister Date: Thu, 11 Sep 2014 10:40:47 -0400 Subject: [PATCH] `test -d` to make sure awscli is actually installed brew --prefix shows the location that a package is or would be installed: https://github.com/Homebrew/homebrew/blob/a8582c58/share/man/man1/brew.1#L448-L449 --- plugins/aws/aws.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/aws/aws.plugin.zsh b/plugins/aws/aws.plugin.zsh index 0ae18dd56..95ebc5b85 100644 --- a/plugins/aws/aws.plugin.zsh +++ b/plugins/aws/aws.plugin.zsh @@ -3,7 +3,7 @@ _homebrew-installed() { } _awscli-homebrew-installed() { - brew list awscli &> /dev/null + test -d brew --prefix awscli &> /dev/null } export AWS_HOME=~/.aws