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 |