oh-my-posh/website/docs/segments/shell.md
2022-05-13 08:19:35 +02:00

728 B

id title sidebar_label
shell Shell Shell

What

Show the current shell name (ZSH, powershell, bash, ...).

Sample Configuration

{
  "type": "shell",
  "style": "powerline",
  "powerline_symbol": "\uE0B0",
  "foreground": "#ffffff",
  "background": "#0077c2",
  "properties": {
    "mapped_shell_names": {
      "pwsh": "PS"
    }
  }
}

Properties

  • mapped_shell_names: object - custom glyph/text to use in place of specified shell names (case-insensitive)

Template (info)

:::note default template

{{ .Name }}

:::

Properties

  • .Name: string - the shell name
  • .Version: string - the shell version