Skip to content

Commit

Permalink
agnoster: allow disabling AWS prompt with SHOW_AWS_PROMPT=false
Browse files Browse the repository at this point in the history
  • Loading branch information
mcornella authored and shlomif committed Oct 15, 2020
1 parent 5c481d8 commit d553ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themes/agnoster.zsh-theme
Expand Up @@ -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" ;;
Expand Down

0 comments on commit d553ff5

Please sign in to comment.