通过 brew 安装后,Bash 补全对“aws cli”不起作用

通过 brew 安装后,Bash 补全对“aws cli”不起作用

我使用brew安装的 aws cli 后,消息形式如下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

但是补全功能似乎不起作用。我甚至启动了一个新的 shell,但当我aws s3<TAB>这样做时,我看到的只是本地文件列表。

编辑:

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

相关内容