Last active
May 5, 2024 04:01
-
-
Save andreav/b5188a8640a9e612d39bc52743abab99 to your computer and use it in GitHub Desktop.
aws profile chooser and setter for bash. alias let me set AWS_PROFILE without launching another shell
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
alias aws-profile-chooser='x() { select prof in $( aws configure list-profiles ) ; do export AWS_PROFILE="$prof"; break; done }; x' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment