diff options
author | Anton Stamenov <lidow@users.noreply.github.com> | 2018-12-31 21:15:56 +0200 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2018-12-31 11:15:56 -0800 |
commit | 0cc1266c17204b84255f924f099152c9e4f0383f (patch) | |
tree | 4b2afa7dc0fa1e002a3d6ed03261186581669f07 /plugins/aws | |
parent | 3c3766fdf5f64daa4a4e96bee56487314ebcd642 (diff) | |
download | zsh-0cc1266c17204b84255f924f099152c9e4f0383f.tar.gz zsh-0cc1266c17204b84255f924f099152c9e4f0383f.tar.bz2 zsh-0cc1266c17204b84255f924f099152c9e4f0383f.zip |
aws_porfiles regex is catching more lines than profiles, thus breaking completion (#7469)
Diffstat (limited to 'plugins/aws')
-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 f78e96ce3..af27e669a 100644 --- a/plugins/aws/aws.plugin.zsh +++ b/plugins/aws/aws.plugin.zsh @@ -35,7 +35,7 @@ function asp { } function aws_profiles { - reply=($(grep profile "${AWS_CONFIG_FILE:-$HOME/.aws/config}"|sed -e 's/.*profile \([a-zA-Z0-9_\.-]*\).*/\1/')) + reply=($(grep '\[profile' "${AWS_CONFIG_FILE:-$HOME/.aws/config}"|sed -e 's/.*profile \([a-zA-Z0-9_\.-]*\).*/\1/')) } compctl -K aws_profiles asp |