Back to Oh My Posh

Shell

website/docs/segments/system/shell.mdx

29.12.01.1 KB
Original Source

What

Show the current shell name (zsh, PowerShell, bash, ...).

Sample Configuration

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

<Config data={{ type: "shell", style: "powerline", powerline_symbol: "\uE0B0", foreground: "#ffffff", background: "#0077c2", options: { mapped_shell_names: { pwsh: "PS", }, }, }} />

Options

NameTypeDefaultDescription
mapped_shell_namesobjectcustom glyph/text to use in place of specified shell names (case-insensitive)

Template (info)

:::note default template

template
{{ .Name }}

:::

Properties

NameTypeDescription
.Namestringthe shell name
.Versionstringthe shell version