mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
feat(azure): Azure module (#3275)
* Azure module * make Semantic PR bot happy * Responding to review * Changing severity of logging event
This commit is contained in:
committed by
GitHub
parent
e3a88a6ec1
commit
365b295433
@@ -240,6 +240,7 @@ $memory_usage\
|
||||
$aws\
|
||||
$gcloud\
|
||||
$openstack\
|
||||
$azure\
|
||||
$env_var\
|
||||
$crystal\
|
||||
$custom\
|
||||
@@ -344,6 +345,31 @@ style = "bold blue"
|
||||
symbol = "🅰 "
|
||||
```
|
||||
|
||||
## Azure
|
||||
|
||||
The `azure` module shows the current Azure Subscription. This is based on showing the name of the default subscription, as defined in the `~/.azure/azureProfile.json` file.
|
||||
|
||||
### Options
|
||||
|
||||
| Variable | Default | Description |
|
||||
| ----------------- | ---------------------------------------- | ------------------------------------------ |
|
||||
| `format` | `"on [$symbol($subscription)]($style) "` | The format for the Azure module to render. |
|
||||
| `symbol` | `"ﴃ "` | The symbol used in the format. |
|
||||
| `style` | `"blue bold"` | The style used in the format. |
|
||||
| `disabled` | `true` | Disables the `azure` module. |
|
||||
|
||||
### Example
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[azure]
|
||||
disabled = false
|
||||
format = "on [$symbol($subscription)]($style) "
|
||||
symbol = "ﴃ "
|
||||
style = "blue bold"
|
||||
```
|
||||
|
||||
## Battery
|
||||
|
||||
The `battery` module shows how charged the device's battery is and its current charging status.
|
||||
|
||||
Reference in New Issue
Block a user