From 533ee3cf8585f1b8b3d71772796b8b53de9245d4 Mon Sep 17 00:00:00 2001 From: Michael Day Date: Tue, 18 Feb 2025 18:23:28 -0600 Subject: [PATCH] update aws_profile in base theme to work with new aws cli versions --- themes/base.theme.bash | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/themes/base.theme.bash b/themes/base.theme.bash index d78baa6adf..a6f9dc2322 100644 --- a/themes/base.theme.bash +++ b/themes/base.theme.bash @@ -590,7 +590,9 @@ if ! _command_exists battery_charge; then fi function aws_profile() { - if [[ -n "${AWS_DEFAULT_PROFILE:-}" ]]; then + if [[ -n "${AWS_PROFILE:-}" ]]; then + echo -ne "${AWS_PROFILE}" + elif [[ -n "${AWS_DEFAULT_PROFILE:-}" ]]; then echo -ne "${AWS_DEFAULT_PROFILE}" else echo -ne "default"