1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

MacOSで、AWS CLI のタブ補完

Posted at

公式ドキュメント

上記URLに Windows , Linux の設定方法についても記載あります。

MACでコマンド補完の手順

###1. aws_completer がシェルのパス上にあるか確認

$ which aws_completer
/usr/local/bin/aws_completer

###2. シェルの識別

echo $SHELL
/bin/zsh

###3. ~/.zshrc の末尾に追記

$ vi ~/.zshrc

#追記する内容
autoload bashcompinit && bashcompinit
autoload -Uz compinit && compinit
complete -C '/usr/local/bin/aws_completer' aws

$ source ~/.zshrc

###補完完了

$ aws dynamodb d
delete-backup                        describe-global-table
delete-item                          describe-global-table-settings
delete-table                         describe-limits
describe-backup                      describe-table
describe-continuous-backups          describe-table-replica-auto-scaling
describe-contributor-insights        describe-time-to-live
describe-endpoints
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?