fix(awsprofile): spaces in prefix

This commit is contained in:
Thomas Raimond
2017-04-19 17:19:46 +02:00
parent 1e8be1b563
commit 761cd01d37
2 changed files with 4 additions and 4 deletions

View File

@@ -184,7 +184,7 @@ NOTE: You do not need to specify *end* segment - it will be added automatically.
|--------|-------|-------|
|`BULLETTRAIN_AWS_BG`|`yellow`|Background color
|`BULLETTRAIN_AWS_FG`|`black`|Foreground color
|`BULLETTRAIN_AWS_PREFIX`|`☁️ `|Prefix of the segment
|`BULLETTRAIN_AWS_PREFIX`|`☁️`|Prefix of the segment
### Perl

View File

@@ -112,7 +112,7 @@ if [ ! -n "${BULLETTRAIN_AWS_FG+1}" ]; then
BULLETTRAIN_AWS_FG=black
fi
if [ ! -n "${BULLETTRAIN_AWS_PREFIX+1}" ]; then
BULLETTRAIN_AWS_PREFIX="☁️ "
BULLETTRAIN_AWS_PREFIX="☁️"
fi
# RUBY
@@ -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$aws_profile
prompt_segment $BULLETTRAIN_AWS_BG $BULLETTRAIN_AWS_FG $BULLETTRAIN_AWS_PREFIX$spaces$aws_profile
fi
}