mirror of
https://github.com/Cornelicorn/bullet-train.zsh.git
synced 2025-12-06 11:50:38 +01:00
fix(awsprofile): spaces in prefix
This commit is contained in:
@@ -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_BG`|`yellow`|Background color
|
||||||
|`BULLETTRAIN_AWS_FG`|`black`|Foreground color
|
|`BULLETTRAIN_AWS_FG`|`black`|Foreground color
|
||||||
|`BULLETTRAIN_AWS_PREFIX`|`☁️ `|Prefix of the segment
|
|`BULLETTRAIN_AWS_PREFIX`|`☁️`|Prefix of the segment
|
||||||
|
|
||||||
### Perl
|
### Perl
|
||||||
|
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ if [ ! -n "${BULLETTRAIN_AWS_FG+1}" ]; then
|
|||||||
BULLETTRAIN_AWS_FG=black
|
BULLETTRAIN_AWS_FG=black
|
||||||
fi
|
fi
|
||||||
if [ ! -n "${BULLETTRAIN_AWS_PREFIX+1}" ]; then
|
if [ ! -n "${BULLETTRAIN_AWS_PREFIX+1}" ]; then
|
||||||
BULLETTRAIN_AWS_PREFIX="☁️ "
|
BULLETTRAIN_AWS_PREFIX="☁️"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# RUBY
|
# RUBY
|
||||||
@@ -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 aws_profile="$AWS_PROFILE"
|
||||||
|
local spaces=" "
|
||||||
|
|
||||||
if [[ -n "$aws_profile" ]]; then
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user