mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
feat(kubernetes): context aliases (#1015)
* Allow kubernetes module to use aliases for contexts * documentation for kubernetes context aliasing * Apply suggestions from code review: consistent ordering of options in documentation Co-Authored-By: Thomas O'Donnell <andytom@users.noreply.github.com> Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com>
This commit is contained in:
@@ -836,11 +836,12 @@ To enable it, set `disabled` to `false` in your configuration file.
|
||||
|
||||
### Options
|
||||
|
||||
| Variable | Default | Description |
|
||||
| ---------- | ------------- | --------------------------------------------------- |
|
||||
| `symbol` | `"☸ "` | The symbol used before displaying the Cluster info. |
|
||||
| `style` | `"bold blue"` | The style for the module. |
|
||||
| `disabled` | `true` | Disables the `kubernetes` module |
|
||||
| Variable | Default | Description |
|
||||
| ---------------- | ------------- | --------------------------------------------------- |
|
||||
| `symbol` | `"☸ "` | The symbol used before displaying the Cluster info. |
|
||||
| `context_aliases` | | Table of context aliases to display |
|
||||
| `style` | `"bold blue"` | The style for the module. |
|
||||
| `disabled` | `true` | Disables the `kubernetes` module |
|
||||
|
||||
### Example
|
||||
|
||||
@@ -851,6 +852,8 @@ To enable it, set `disabled` to `false` in your configuration file.
|
||||
symbol = "⛵ "
|
||||
style = "dimmed green"
|
||||
disabled = false
|
||||
[kubernetes.context_aliases]
|
||||
"dev.local.cluster.k8s" = "dev"
|
||||
```
|
||||
|
||||
## Line Break
|
||||
|
||||
Reference in New Issue
Block a user