completion/awscli: use _command_exists

This commit is contained in:
John D Pell
2021-09-11 18:02:02 -07:00
parent dca96e0c39
commit 699d893bef

View File

@@ -1 +1,6 @@
[[ -x "$(which aws_completer)" ]] && complete -C "$(which aws_completer)" aws
# shellcheck shell=bash
if _command_exists aws_completer
then
complete -C "$(command -v aws_completer)" aws
fi