Skip to main content

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โ€‹

{
"type": "talosctl",
"style": "powerline",
"powerline_symbol": "๎‚ฐ",
"foreground": "#FFFFFF",
"background": "#FF6C00",
"template": " ๓ฑƒพ {{ .Context }}"
}

Template (info)โ€‹

default template
{{ .Context }}

Propertiesโ€‹

NameTypeDescription
.Contextstringthe current talosctl context