mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-29 04:53:17 +02:00
add AWS: prefix to segment
This commit is contained in:
parent
40b4c48384
commit
db560f6ce3
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue