Skip to content

Commit

Permalink
refacto(awsprofile): useless var removed
Browse files Browse the repository at this point in the history
  • Loading branch information
ThamosIO committed Apr 26, 2017
1 parent 761cd01 commit 70aa6f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ NOTE: You do not need to specify *end* segment - it will be added automatically.

### 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
|--------|-------|-------|
|`BULLETTRAIN_AWS_BG`|`yellow`|Background color
Expand Down
6 changes: 3 additions & 3 deletions bullet-train.zsh-theme
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 70aa6f1

Please sign in to comment.