d14bddf6d7481e8ba73ccd0f6ce5cf3d8a8bc207
- Author
- Marc Cornellà <marc.cornella@live.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
agnoster: allow disabling AWS prompt with SHOW_AWS_PROMPT=false
Fixes #8040
Diff
1diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme
2index b0a3b7b3f427a1f3fcdc153786781de814cd2c6a..79748e45e5ee303c7f5dcaacd4341917b5f9c065 100644
3--- a/themes/agnoster.zsh-theme
4+++ b/themes/agnoster.zsh-theme
5@@ -235,7 +235,7 @@ prompt_status() {
6 # ends in '-prod'
7 # - displays black on green otherwise
8 prompt_aws() {
9- [[ -z "$AWS_PROFILE" ]] && return
10+ [[ -z "$AWS_PROFILE" || "$SHOW_AWS_PROMPT" = false ]] && return
11 case "$AWS_PROFILE" in
12 *-prod|*production*) prompt_segment red yellow "AWS: $AWS_PROFILE" ;;
13 *) prompt_segment green black "AWS: $AWS_PROFILE" ;;