mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-07-03 05:31:17 +02:00
Fix up search process for aws_zsh_completer.sh in the non-brew case.
This commit is contained in:
parent
a7e30b26ba
commit
23fe22e950
1 changed files with 3 additions and 1 deletions
|
|
@ -29,9 +29,11 @@ compctl -K aws_profiles asp
|
||||||
|
|
||||||
if _homebrew-installed && _awscli-homebrew-installed ; then
|
if _homebrew-installed && _awscli-homebrew-installed ; then
|
||||||
_aws_zsh_completer_path=$(brew --prefix awscli)/libexec/bin/aws_zsh_completer.sh
|
_aws_zsh_completer_path=$(brew --prefix awscli)/libexec/bin/aws_zsh_completer.sh
|
||||||
|
elif [ -e /usr/share/zsh/site-functions/aws_zsh_completer.sh ]; then
|
||||||
|
_aws_zsh_completer_path=/usr/share/zsh/site-functions/aws_zsh_completer.sh
|
||||||
else
|
else
|
||||||
_aws_zsh_completer_path=$(which aws_zsh_completer.sh)
|
_aws_zsh_completer_path=$(which aws_zsh_completer.sh)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -x $_aws_zsh_completer_path ] && source $_aws_zsh_completer_path
|
[ -e "$_aws_zsh_completer_path" ] && source "$_aws_zsh_completer_path"
|
||||||
unset _aws_zsh_completer_path
|
unset _aws_zsh_completer_path
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue