Talosctl Context
What
Displays the currently active Talosctl context name.
This segment leverages the .talos/config
file generated by the Talosctl CLI.
The CLI docs can be found by going to Documentation > Reference > CLI.
For example, v1.7 CLI.
Sample Configuration
- json
- yaml
- toml
{
"type": "talosctl",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#FFFFFF",
"background": "#FF6C00",
"template": " {{ .Context }}"
}
type: talosctl
style: powerline
powerline_symbol:
foreground: "#FFFFFF"
background: "#FF6C00"
template: " {{ .Context }}"
type = "talosctl"
style = "powerline"
powerline_symbol = ""
foreground = "#FFFFFF"
background = "#FF6C00"
template = " {{ .Context }}"
Template (info)
default template
{{ .Context }}
Properties
Name | Type | Description |
---|---|---|
.Context | string | the current talosctl context |