https://docs.aws.amazon.com/cli/v1/userguide/cli-configure-completion.html#cli-command-completion-linux
aws_completer のインストールディレクトリを調べる
$ which aws_completer
/opt/homebrew/bin/aws_completer
.bashrc
export PATH=$(dirname $(which aws_completer)):$PATH
.zshrc
autoload bashcompinit && bashcompinit
autoload -Uz compinit && compinit
complete -C '/opt/homebrew/bin/aws_completer' aws
Discussion