Consola
Traducción Beta No Oficial
Esta página fue traducida por PageTurner AI (beta). No está respaldada oficialmente por el proyecto. ¿Encontraste un error? Reportar problema →
Qué hace
Muestra el nombre de la consola actual (zsh, PowerShell, bash, ...).
Configuración de ejemplo
- json
- yaml
- toml
{
"type": "shell",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#0077c2",
"options": {
"mapped_shell_names": {
"pwsh": "PS"
}
}
}
type: shell
style: powerline
powerline_symbol:
foreground: "#ffffff"
background: "#0077c2"
options:
mapped_shell_names:
pwsh: PS
type = "shell"
style = "powerline"
powerline_symbol = ""
foreground = "#ffffff"
background = "#0077c2"
[options.mapped_shell_names]
pwsh = "PS"
Opciones
| Name | Type | Default | Description |
|---|---|---|---|
mapped_shell_names | object | custom glyph/text to use in place of specified shell names (case-insensitive) |
Plantilla (info)
plantilla predeterminada
{{ .Name }}
Propiedades
| Name | Type | Description |
|---|---|---|
.Name | string | the shell name |
.Version | string | the shell version |