Shell
What
Show the current shell name (zsh, PowerShell, bash, ...).
Sample Configuration
- json
- yaml
- toml
{
"type": "shell",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#0077c2",
"properties": {
"mapped_shell_names": {
"pwsh": "PS"
}
}
}
type: shell
style: powerline
powerline_symbol:
foreground: "#ffffff"
background: "#0077c2"
properties:
mapped_shell_names:
pwsh: PS
type = "shell"
style = "powerline"
powerline_symbol = ""
foreground = "#ffffff"
background = "#0077c2"
[properties.mapped_shell_names]
pwsh = "PS"
Properties
Name | Type | Default | Description |
---|---|---|---|
mapped_shell_names | object | custom glyph/text to use in place of specified shell names (case-insensitive) |
Template (info)
default template
{{ .Name }}
Properties
Name | Type | Description |
---|---|---|
.Name | string | the shell name |
.Version | string | the shell version |