summaryrefslogtreecommitdiff
path: root/plugins/aws
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2014-12-19 20:20:21 -0800
committerRobby Russell <robby@planetargon.com>2014-12-19 20:20:21 -0800
commit9e794a5d3e34a0b0d12f0668e471b1c47a1b9be6 (patch)
tree03b88024a5c0666a3b8e30a0513254820dbeecff /plugins/aws
parentcd845a1ffd4195fa1a0c1041079a65e97b1c27c1 (diff)
parent7931d5ce1a72cc49cc64478042bc3ef3b667ac8e (diff)
downloadzsh-9e794a5d3e34a0b0d12f0668e471b1c47a1b9be6.tar.gz
zsh-9e794a5d3e34a0b0d12f0668e471b1c47a1b9be6.tar.bz2
zsh-9e794a5d3e34a0b0d12f0668e471b1c47a1b9be6.zip
Merge pull request #3410 from Superbil/master
Fix aws.plugins.zsh check rule
Diffstat (limited to 'plugins/aws')
-rw-r--r--plugins/aws/aws.plugin.zsh7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/aws/aws.plugin.zsh b/plugins/aws/aws.plugin.zsh
index de786725f..0ae18dd56 100644
--- a/plugins/aws/aws.plugin.zsh
+++ b/plugins/aws/aws.plugin.zsh
@@ -22,7 +22,10 @@ function aws_profiles {
compctl -K aws_profiles asp
if _homebrew-installed && _awscli-homebrew-installed ; then
- source $(brew --prefix)/opt/awscli/libexec/bin/aws_zsh_completer.sh
+ _aws_zsh_completer_path=$(brew --prefix)/opt/awscli/libexec/bin/aws_zsh_completer.sh
else
- source `which aws_zsh_completer.sh`
+ _aws_zsh_completer_path=$(which aws_zsh_completer.sh)
fi
+
+[ -x $_aws_zsh_completer_path ] && source $_aws_zsh_completer_path
+unset _aws_zsh_completer_path