From 9e4de7b42c5e0a254199d5b1bbf245eacfaaacc2 Mon Sep 17 00:00:00 2001 From: Andrea Mistrali Date: Wed, 27 Oct 2021 09:57:17 +0200 Subject: [PATCH] Improve awslogin a bit more --- zsh.d/zshfunctions/awslogin | 2 +- zsh.d/zshfunctions/awslogin.zwc | Bin 1440 -> 1416 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh.d/zshfunctions/awslogin b/zsh.d/zshfunctions/awslogin index ea0bff7..d5f256e 100644 --- a/zsh.d/zshfunctions/awslogin +++ b/zsh.d/zshfunctions/awslogin @@ -10,4 +10,4 @@ elif [ $AWS_PROFILE ]; then fi echo "Available profiles" -grep profile ~/.aws/config|awk '{print $2}' | sed 's/]//g' +grep profile ~/.aws/config | sed -E 's/\[profile (.+)\]/\1/' diff --git a/zsh.d/zshfunctions/awslogin.zwc b/zsh.d/zshfunctions/awslogin.zwc index 466b1f1d7aa88f35cb686e5a2ff18b63bed8156d..70a418ae8199b6bbd01dd8b12029a5aa45107aca 100644 GIT binary patch delta 186 zcmZ3$-NDVx&c@2ZaD<7$RL^4aLnft(y6l{}OblR9vC%eykv9}Aj8vH6a<@rf@#dk+Ors#bZ#>+Fc(g~!T3-bkKq83&MfZ$ delta 212 zcmeC+Uck-G&c@2ZaDj=zRL^4aMJCmW1}vOaOblSqvC%eykd}bVxS<{D(2|jTnr4%g+Sa46mw%%)}94q LF9q2nj>8@R2Td*^