Skip to main content

Shell

What

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

Sample Configuration

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

Properties

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

Template (info)

default template
{{ .Name }}

Properties

NameTypeDescription
.Namestringthe shell name
.Versionstringthe shell version