summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2020-09-26 12:25:30 +0200
committerMarc Cornellà <marc.cornella@live.com>2020-09-26 12:25:30 +0200
commitd14bddf6d7481e8ba73ccd0f6ce5cf3d8a8bc207 (patch)
tree5773265c4f4c99beae914734ad17db04f0833ce2 /themes
parentcaff704f41d7a8cd01aa54b1202d6e3123e33fe6 (diff)
downloadzsh-d14bddf6d7481e8ba73ccd0f6ce5cf3d8a8bc207.tar.gz
zsh-d14bddf6d7481e8ba73ccd0f6ce5cf3d8a8bc207.tar.bz2
zsh-d14bddf6d7481e8ba73ccd0f6ce5cf3d8a8bc207.zip
agnoster: allow disabling AWS prompt with SHOW_AWS_PROMPT=false
Fixes #8040
Diffstat (limited to 'themes')
-rw-r--r--themes/agnoster.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme
index b0a3b7b3f..79748e45e 100644
--- a/themes/agnoster.zsh-theme
+++ b/themes/agnoster.zsh-theme
@@ -235,7 +235,7 @@ prompt_status() {
# ends in '-prod'
# - displays black on green otherwise
prompt_aws() {
- [[ -z "$AWS_PROFILE" ]] && return
+ [[ -z "$AWS_PROFILE" || "$SHOW_AWS_PROMPT" = false ]] && return
case "$AWS_PROFILE" in
*-prod|*production*) prompt_segment red yellow "AWS: $AWS_PROFILE" ;;
*) prompt_segment green black "AWS: $AWS_PROFILE" ;;