diff options
author | Lutz Horn <code@lhorn.de> | 2020-07-09 10:43:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-09 10:43:59 +0200 |
commit | d79941b78997f7c11e247c08678fd57827db3b42 (patch) | |
tree | 4398482138af956bda642ba42cb4b6aacb1dbee0 /plugins/aws/aws.plugin.zsh | |
parent | 1c58a746af7a67f311ee47f97285a855eaf18b5e (diff) | |
download | zsh-d79941b78997f7c11e247c08678fd57827db3b42.tar.gz zsh-d79941b78997f7c11e247c08678fd57827db3b42.tar.bz2 zsh-d79941b78997f7c11e247c08678fd57827db3b42.zip |
aws: allow @ in AWS profiles (#9099)
Fixes #9060 by matching a `@` in the AWS profile name.
Diffstat (limited to 'plugins/aws/aws.plugin.zsh')
-rw-r--r-- | plugins/aws/aws.plugin.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/aws/aws.plugin.zsh b/plugins/aws/aws.plugin.zsh index 4b5446407..d00c2e56c 100644 --- a/plugins/aws/aws.plugin.zsh +++ b/plugins/aws/aws.plugin.zsh @@ -41,7 +41,7 @@ function aws_change_access_key() { function aws_profiles() { [[ -r "${AWS_CONFIG_FILE:-$HOME/.aws/config}" ]] || return 1 - grep '\[profile' "${AWS_CONFIG_FILE:-$HOME/.aws/config}"|sed -e 's/.*profile \([a-zA-Z0-9_\.-]*\).*/\1/' + grep '\[profile' "${AWS_CONFIG_FILE:-$HOME/.aws/config}"|sed -e 's/.*profile \([a-zA-Z0-9@_\.-]*\).*/\1/' } function _aws_profiles() { |