Back to Oh My Posh

Talosctl Context

website/docs/segments/cli/talosctl.mdx

29.12.0992 B
Original Source

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

import Config from '@site/src/components/Config.js';

<Config data={{ "type": "talosctl", "style": "powerline", "powerline_symbol": "\uE0B0", "foreground": "#FFFFFF", "background": "#FF6C00", "template": " \udb84\udcfe {{ .Context }}" }}/>

Template (info)

:::note default template

template
 {{ .Context }}

:::

Properties

NameTypeDescription
.Contextstringthe current talosctl context