Skip to content

Commit 5797ad3

Browse files
authored
Merge pull request #2290 from mdaydevelopment/aws2_profile
2 parents f42295e + 533ee3c commit 5797ad3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

themes/base.theme.bash

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,9 @@ if ! _command_exists battery_charge; then
590590
fi
591591

592592
function aws_profile() {
593-
if [[ -n "${AWS_DEFAULT_PROFILE:-}" ]]; then
593+
if [[ -n "${AWS_PROFILE:-}" ]]; then
594+
echo -ne "${AWS_PROFILE}"
595+
elif [[ -n "${AWS_DEFAULT_PROFILE:-}" ]]; then
594596
echo -ne "${AWS_DEFAULT_PROFILE}"
595597
else
596598
echo -ne "default"

0 commit comments

Comments
 (0)