add AWS: prefix to segment

This commit is contained in:
Rob Lugton 2018-02-13 11:09:47 +11:00
parent 40b4c48384
commit db560f6ce3

View File

@ -221,9 +221,9 @@ prompt_aws_profile() {
local aws_profile="$AWS_PROFILE" local aws_profile="$AWS_PROFILE"
if [[ -n $aws_profile ]]; then if [[ -n $aws_profile ]]; then
if [[ $aws_profile == *"-prod" || $aws_profile == *"production"* ]]; then if [[ $aws_profile == *"-prod" || $aws_profile == *"production"* ]]; then
prompt_segment red yellow "$aws_profile" prompt_segment red yellow "AWS: $aws_profile"
else else
prompt_segment green black "$aws_profile" prompt_segment green black "AWS: $aws_profile"
fi fi
fi fi
} }