From c2f1f88766ce2adb53c12abfed5721b63f57a6b2 Mon Sep 17 00:00:00 2001 From: Andrea Mistrali Date: Fri, 3 Dec 2021 15:18:09 +0100 Subject: [PATCH] Really fix typos --- zsh.d/zshfunctions/awsprofile | 8 ++++---- zsh.d/zshfunctions/awsprofile.zwc | Bin 3328 -> 3328 bytes 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/zsh.d/zshfunctions/awsprofile b/zsh.d/zshfunctions/awsprofile index ba8c0a9..114fbe4 100644 --- a/zsh.d/zshfunctions/awsprofile +++ b/zsh.d/zshfunctions/awsprofile @@ -5,7 +5,7 @@ if [ $profile ]; then # We got a profile pattern, look for a match match_no=$(echo $match|wc -l) # Number of profile matching if [ $match_no -gt 1 ]; then # more than one match - print -P "$FX[bold]Multiple profile match:" + print -P "$FX[bold]multiple profile match:" print -P "$FG[003]" echo $match print -P "$FX[reset]" @@ -13,14 +13,14 @@ if [ $profile ]; then # We got a profile pattern, look for a match fi if [ $match ]; then # Single match, setting profile - print -P "$FX[bold]Activating profile $FG[075]$match$FX[reset]" + print -P "$FX[bold]activating profile $FG[075]$match$FX[reset]" export AWS_DEFAULT_PROFILE=$match export AWS_PROFILE=$match export AWS_DEFAULT_REGION=$(grep -A1 $match ~/.aws/config|grep region|cut -d" " -f3) export AWS_REGION=${AWS_DEFAULT_REGION} return else - print -P "$FX[bold]$FG[009]No match for $profile$FX[reset]" + print -P "$FX[bold]$FG[009]no match for $profile$FX[reset]" return fi @@ -30,7 +30,7 @@ elif [ $AWS_PROFILE ]; then # no profile passed, clean up current one, logout return fi -print -P "$FX[bold]Available profiles" +print -P "$FX[bold]available profiles" print -P "$FG[075]" grep profile ~/.aws/config | sed -E 's/\[profile (.+)\]/\1/' print -P "$FX[reset]" diff --git a/zsh.d/zshfunctions/awsprofile.zwc b/zsh.d/zshfunctions/awsprofile.zwc index df762ee091244e4a3699635257e626ea03220761..1d289ecd64abb4f5ba30a173f9add940ad90f11f 100644 GIT binary patch delta 56 tcmZpWYLMFC&%&5HIe^8NF>&%dmY0lqlRH@Z7!x;(v+cktF