summaryrefslogtreecommitdiff
path: root/themes/agnoster.zsh-theme
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2020-10-08 11:04:31 -0600
committerTuowen Zhao <ztuowen@gmail.com>2020-10-08 11:04:31 -0600
commit1774c426de3c4845e2d606c813c37067b8cf78d7 (patch)
tree872a7bbcaa79cf0b1c19d2687090ee6eb8e205fb /themes/agnoster.zsh-theme
parent2b3d602644a13aa97391f22ecfc249b6bc58dd49 (diff)
parent27857e66d0dab0bd05790307dfe5388f3cb2c51a (diff)
downloadzsh-1774c426de3c4845e2d606c813c37067b8cf78d7.tar.gz
zsh-1774c426de3c4845e2d606c813c37067b8cf78d7.tar.bz2
zsh-1774c426de3c4845e2d606c813c37067b8cf78d7.zip
Merge remote-tracking branch 'origin/master' into master
Diffstat (limited to 'themes/agnoster.zsh-theme')
-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 82edd206b..b658adac0 100644
--- a/themes/agnoster.zsh-theme
+++ b/themes/agnoster.zsh-theme
@@ -244,7 +244,7 @@ prompt_cabal_sandbox() {
# 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" ;;