mirror of
https://github.com/starship/starship.git
synced 2026-06-22 02:02:12 +07:00
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:
committed by
Kevin Song
parent
80a9e7b9a6
commit
b050c59708
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user