add aws-sso-login

This commit is contained in:
Jason Swank
2026-01-12 23:29:03 -05:00
parent a7804cc129
commit c36d1fa1f8
3 changed files with 33 additions and 3 deletions

View File

@@ -48,9 +48,9 @@ zstyle ':vcs_info:git*' actionformats '%%S%r%%s:%{$fg[red]%}%b:%a%{$reset_color%
function set_prompt() {
if [[ -n "$AWS_ENVIRONMENT" ]]; then
if [[ -n "$AWS_PROFILE" ]]; then
aws_prompt="
%S%B$AWS_ENVIRONMENT%b%s
%S%B$AWS_PROFILE%b%s
"
else
aws_prompt=""