mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-12 20:21:02 +01:00
agnoster: allow disabling AWS prompt with SHOW_AWS_PROMPT=false
Fixes #8040
This commit is contained in:
parent
caff704f41
commit
d14bddf6d7
1 changed files with 1 additions and 1 deletions
|
@ -235,7 +235,7 @@ prompt_status() {
|
||||||
# ends in '-prod'
|
# ends in '-prod'
|
||||||
# - displays black on green otherwise
|
# - displays black on green otherwise
|
||||||
prompt_aws() {
|
prompt_aws() {
|
||||||
[[ -z "$AWS_PROFILE" ]] && return
|
[[ -z "$AWS_PROFILE" || "$SHOW_AWS_PROMPT" = false ]] && return
|
||||||
case "$AWS_PROFILE" in
|
case "$AWS_PROFILE" in
|
||||||
*-prod|*production*) prompt_segment red yellow "AWS: $AWS_PROFILE" ;;
|
*-prod|*production*) prompt_segment red yellow "AWS: $AWS_PROFILE" ;;
|
||||||
*) prompt_segment green black "AWS: $AWS_PROFILE" ;;
|
*) prompt_segment green black "AWS: $AWS_PROFILE" ;;
|
||||||
|
|
Loading…
Reference in a new issue