Bash completion not working for 'aws cli' after installed via brew

0

After I use brew to install aws cli, here is the message form brew:

==> awscli
The "examples" directory has been installed to:
  /usr/local/share/awscli/examples

Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completions and functions have been installed to:
  /usr/local/share/zsh/site-functions

However the completion does not seems to work. I have even started a new shell, but when I do aws s3<TAB> all I see is a list of local files.

EDIT:

$ complete -p aws
bash: complete: aws: no completion specification

Anthony Kong

Posted 2019-06-19T08:07:24.247

Reputation: 3 117

Add output of complete -p aws to your question. – Cyrus – 2019-06-19T08:23:56.800

Done. Output is added to the question. – Anthony Kong – 2019-06-19T09:37:19.277

No answers