completion/awscli: use `_command_exists`

pull/1938/head
John D Pell 2021-09-11 18:02:02 -07:00
parent dca96e0c39
commit 699d893bef
1 changed files with 6 additions and 1 deletions

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