diff options
author | Hans Donner <hans@hansdonner.nl> | 2022-07-12 19:25:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-12 19:25:27 +0200 |
commit | 0726c1099fec6599dbf91a260f21d6d45fd8f309 (patch) | |
tree | c750fe14a4daa27c28729978f155ea6c36197321 /plugins/aws/aws.plugin.zsh | |
parent | ef8e63a7fd30e04079e54ea76043c1db76e24ddf (diff) | |
download | zsh-0726c1099fec6599dbf91a260f21d6d45fd8f309.tar.gz zsh-0726c1099fec6599dbf91a260f21d6d45fd8f309.tar.bz2 zsh-0726c1099fec6599dbf91a260f21d6d45fd8f309.zip |
fix(aws): allow non-space characters in profile names (#11040)
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 b8625d7ac..2167f552c 100644 --- a/plugins/aws/aws.plugin.zsh +++ b/plugins/aws/aws.plugin.zsh @@ -147,7 +147,7 @@ function aws_change_access_key() { function aws_profiles() { [[ -r "${AWS_CONFIG_FILE:-$HOME/.aws/config}" ]] || return 1 - grep --color=never -Eo '\[.*\]' "${AWS_CONFIG_FILE:-$HOME/.aws/config}" | sed -E 's/^[[:space:]]*\[(profile)?[[:space:]]*([-_[:alnum:]\.@]+)\][[:space:]]*$/\2/g' + grep --color=never -Eo '\[.*\]' "${AWS_CONFIG_FILE:-$HOME/.aws/config}" | sed -E 's/^[[:space:]]*\[(profile)?[[:space:]]*([^[:space:]]+)\][[:space:]]*$/\2/g' } function _aws_profiles() { |