Commit 0cc1266c authored by Anton Stamenov's avatar Anton Stamenov Committed by Robby Russell
Browse files

aws_porfiles regex is catching more lines than profiles, thus breaking completion (#7469)

parent 3c3766fd
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment