Skip to content

Commit

Permalink
Update AWS SSO
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <[email protected]>
  • Loading branch information
jacobwoffenden authored Oct 17, 2024
1 parent 79c2eba commit 44a1259
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
# shellcheck disable=SC2016

PROMPT+='`\
if [[ ${AWS_SSO_PROFILE} == *"development"* || ${AWS_SSO_PROFILE} == *"test"* ]]; then \
if [[ ${AWS_SSO_PROFILE} == *"development"* ]]; then \
echo -n "[ aws: %{$fg[green]%}${AWS_SSO_PROFILE}@${AWS_DEFAULT_REGION}%{$reset_color%} ] "; \
elif [[ ${AWS_SSO_PROFILE} == *"test"* ]]; then \
echo -n "[ aws: %{$fg[blue]%}${AWS_SSO_PROFILE}@${AWS_DEFAULT_REGION}%{$reset_color%} ] "; \
elif [[ ${AWS_SSO_PROFILE} == *"preproduction"* ]]; then \
echo -n "[ aws: %{$fg[yellow]%}${AWS_SSO_PROFILE}@${AWS_DEFAULT_REGION}%{$reset_color%} ] "; \
elif [[ ${AWS_SSO_PROFILE} == *"production"* ]]; then \
echo -n "[ aws: %{$fg[red]%}${AWS_SSO_PROFILE}@${AWS_DEFAULT_REGION}%{$reset_color%} ] "; \
elif [[ ! -z ${AWS_SSO_PROFILE} ]]; then \
echo -n "[ aws: %{$fg[blue]%}${AWS_SSO_PROFILE}@${AWS_DEFAULT_REGION}%{$reset_color%} ] "; \
fi \
fi
`'

0 comments on commit 44a1259

Please sign in to comment.