diff options
author | Hosh <hoshsadiq@users.noreply.github.com> | 2018-05-10 19:53:16 +0100 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2018-05-10 20:53:16 +0200 |
commit | e8c328cb394e39f8d1c7d18b85b0be12bd71c556 (patch) | |
tree | 32cc845f26eff84062754bb11b0bd3e51b915d6e /plugins/aws/aws.plugin.zsh | |
parent | 825baeb31074ee43e77e7cd26ff17b619ed13bb5 (diff) | |
download | zsh-e8c328cb394e39f8d1c7d18b85b0be12bd71c556.tar.gz zsh-e8c328cb394e39f8d1c7d18b85b0be12bd71c556.tar.bz2 zsh-e8c328cb394e39f8d1c7d18b85b0be12bd71c556.zip |
Update AWS completion (#6745)
Diffstat (limited to 'plugins/aws/aws.plugin.zsh')
-rw-r--r-- | plugins/aws/aws.plugin.zsh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/aws/aws.plugin.zsh b/plugins/aws/aws.plugin.zsh index 6a0e04add..a326e2e01 100644 --- a/plugins/aws/aws.plugin.zsh +++ b/plugins/aws/aws.plugin.zsh @@ -42,11 +42,11 @@ function aws_profiles { compctl -K aws_profiles asp -if _homebrew-installed && _awscli-homebrew-installed ; then +if which aws_zsh_completer.sh &>/dev/null; then + _aws_zsh_completer_path=$(which aws_zsh_completer.sh 2>/dev/null) +elif _homebrew-installed && _awscli-homebrew-installed; then _aws_zsh_completer_path=$_brew_prefix/libexec/bin/aws_zsh_completer.sh -else - _aws_zsh_completer_path=$(which aws_zsh_completer.sh) fi -[ -x $_aws_zsh_completer_path ] && source $_aws_zsh_completer_path +[ -n "$_aws_zsh_completer_path" ] && [ -x $_aws_zsh_completer_path ] && source $_aws_zsh_completer_path unset _aws_zsh_completer_path |