mirror of
https://github.com/Cornelicorn/bullet-train.zsh.git
synced 2025-12-06 20:00:38 +01:00
refacto(awsprofile): useless var removed
This commit is contained in:
@@ -180,6 +180,9 @@ NOTE: You do not need to specify *end* segment - it will be added automatically.
|
|||||||
|
|
||||||
### AWS Profile
|
### AWS Profile
|
||||||
|
|
||||||
|
Displays which AWS (Amazon Web Services) credentials profile is currently set.
|
||||||
|
This environment var is used by aws-cli and other tools to use the right access keys and other parameters.
|
||||||
|
|
||||||
|Variable|Default|Meaning
|
|Variable|Default|Meaning
|
||||||
|--------|-------|-------|
|
|--------|-------|-------|
|
||||||
|`BULLETTRAIN_AWS_BG`|`yellow`|Background color
|
|`BULLETTRAIN_AWS_BG`|`yellow`|Background color
|
||||||
|
|||||||
@@ -506,12 +506,12 @@ prompt_nvm() {
|
|||||||
prompt_segment $BULLETTRAIN_NVM_BG $BULLETTRAIN_NVM_FG $BULLETTRAIN_NVM_PREFIX$nvm_prompt
|
prompt_segment $BULLETTRAIN_NVM_BG $BULLETTRAIN_NVM_FG $BULLETTRAIN_NVM_PREFIX$nvm_prompt
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#AWS Profile
|
||||||
prompt_aws() {
|
prompt_aws() {
|
||||||
local aws_profile="$AWS_PROFILE"
|
|
||||||
local spaces=" "
|
local spaces=" "
|
||||||
|
|
||||||
if [[ -n "$aws_profile" ]]; then
|
if [[ -n "$AWS_PROFILE" ]]; then
|
||||||
prompt_segment $BULLETTRAIN_AWS_BG $BULLETTRAIN_AWS_FG $BULLETTRAIN_AWS_PREFIX$spaces$aws_profile
|
prompt_segment $BULLETTRAIN_AWS_BG $BULLETTRAIN_AWS_FG $BULLETTRAIN_AWS_PREFIX$spaces$AWS_PROFILE
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user