refacto(awsprofile): useless var removed

This commit is contained in:
Thomas Raimond
2017-04-19 17:22:31 +02:00
parent 761cd01d37
commit 70aa6f1f72
2 changed files with 6 additions and 3 deletions

View File

@@ -506,12 +506,12 @@ prompt_nvm() {
prompt_segment $BULLETTRAIN_NVM_BG $BULLETTRAIN_NVM_FG $BULLETTRAIN_NVM_PREFIX$nvm_prompt
}
#AWS Profile
prompt_aws() {
local aws_profile="$AWS_PROFILE"
local spaces=" "
if [[ -n "$aws_profile" ]]; then
prompt_segment $BULLETTRAIN_AWS_BG $BULLETTRAIN_AWS_FG $BULLETTRAIN_AWS_PREFIX$spaces$aws_profile
if [[ -n "$AWS_PROFILE" ]]; then
prompt_segment $BULLETTRAIN_AWS_BG $BULLETTRAIN_AWS_FG $BULLETTRAIN_AWS_PREFIX$spaces$AWS_PROFILE
fi
}