Skip to content

Commit

Permalink
Adding support for AWS Profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
justino committed Aug 5, 2021
1 parent fe0b58f commit 553f5eb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bedbugs.zsh-theme
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ prompt_virtualenv() {
fi
}

prompt_aws_profile() {
if [[ -v AWS_PROFILE && ! -v AWS_PROFILE_DISABLE_PROMPT ]]; then
prompt_segment magenta white "AWS: $AWS_PROFILE"
fi
}

# Jobs: current count of running jobs
prompt_jobs() {
local jobs=$(jobs -l | wc -l)
Expand All @@ -102,6 +108,7 @@ build_prompt() {
# Start 2nd line
print

prompt_aws_profile
prompt_virtualenv
prompt_git
prompt_sigil
Expand Down

0 comments on commit 553f5eb

Please # to comment.