Created
April 25, 2021 01:19
-
-
Save grateful-dev/a82d8150beb00896dca5bc1e75b7b361 to your computer and use it in GitHub Desktop.
tiny aws cli zsh helpers
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
function set_aws_profile { | |
export AWS_PROFILE=$1 | |
} | |
function _set_aws_profile { | |
set -A aws_profiles $(cat ~/.aws/config | grep "^\[" | cut -d "[" -f2 | cut -d "]" -f1) | |
compadd $aws_profiles | |
} | |
compdef _set_aws_profile set_aws_profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment