Last active
June 29, 2018 14:54
-
-
Save chaspy/d1737296a3554995886d0eb1f979ed39 to your computer and use it in GitHub Desktop.
AWS CLIでプロファイルを切り替える ref: https://qiita.com/chaspy/items/7bf3bbb2060c887c54a8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
awsc () { | |
export AWS_DEFAULT_PROFILE=$(grep -oE "(\[).+(\])" ~/.aws/credentials | tr -d [] | peco) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment