feat: Add AWS module (#419)

Adds a module for displaying the current AWS profile based 
on the AWS_PROFILE envar.
This commit is contained in:
Thomas O'Donnell
2019-09-26 04:55:47 +02:00
committed by Kevin Song
parent 80a9e7b9a6
commit b050c59708
7 changed files with 83 additions and 0 deletions
+24
View File
@@ -84,6 +84,7 @@ prompt_order = [
"username",
"hostname",
"directory",
"aws",
"git_branch",
"git_state",
"git_status",
@@ -104,6 +105,29 @@ prompt_order = [
]
```
## AWS
The `aws` module shows the current AWS profile. This is based on the
`AWS_PROFILE` env var.
### Options
| Variable | Default | Description |
| ---------- | --------------- | ---------------------------------------------------- |
| `disabled` | `false` | Disables the `AWS` module |
| `style` | `"bold yellow"` | The style used for the module |
| `symbol` | `"☁️ "` | The symbol before displaying the current AWS profile |
### Example
```toml
# ~/.config/starship.toml
[aws]
style = "bold blue"
symbol = "🅰 "
```
## Battery
The `battery` module shows how charged the device's battery is and its current charging status.