oh-my-posh/website/docs/segments/shell.mdx
2022-06-03 20:42:25 +02:00

48 lines
728 B
Plaintext

---
id: shell
title: Shell
sidebar_label: Shell
---
## What
Show the current shell name (ZSH, powershell, bash, ...).
## Sample Configuration
```json
{
"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][templates])
:::note default template
``` template
{{ .Name }}
```
:::
### Properties
- `.Name`: `string` - the shell name
- `.Version`: `string` - the shell version
[templates]: /docs/configuration/templates