3
3

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 5 years have passed since last update.

[自分メモ]AWS CLI使うならタブ補完を有効に

Posted at

はじめに

普段からAWS CLI使ってるくせに、恥ずかしながらAWS Summit Tokyo 2018で聞いたセッションで初めて知りました。
自分メモとして残しておきます。

概要

  • AWS CLIはインストールしただけではタブ補完が有効にならない
  • completeで設定する
  • .bashrcにも書く
  • 本手順はOSX(10.12.6)のbash前提です(自分メモなので)

手順

公式ドキュメントの通りやればOK

AWSコンプリータのパスを確認

$ which aws_completer
/usr/local/bin/aws_completer

タブ補完を有効化

$ complete -C '/usr/local/bin/aws_completer' aws

~/.bashrc

~/.bashrc
#aws cli
complete -C '/usr/local/bin/aws_completer' aws

補足

.bashrc.bash_profile、どっちに書くの?という疑問についてはこちらの記事で納得。
https://qiita.com/magicant/items/d3bb7ea1192e63fba850

3
3
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
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?