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โ
|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 |