Prompt secundario
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 →
información
Por el momento, esta función solo funciona en powershell, zsh y bash.
El prompt secundario se muestra cuando un comando abarca varias líneas. Por defecto es > .
Puedes usar plantillas text/template de Go extendidas con sprig para personalizar el texto.
Las variables de entorno están disponibles, igual que en la funcionalidad de console_title_template.
Configuración
Necesitas extender o crear un tema personalizado con tu configuración de prompt secundario. Por ejemplo:
- json
- yaml
- toml
{
"secondary_prompt": {
"background": "transparent",
"foreground": "#ffffff",
"template": "-> "
}
}
secondary_prompt:
background: transparent
foreground: "#ffffff"
template: "-> "
[secondary_prompt]
background = "transparent"
foreground = "#ffffff"
template = "-> "
Opciones
| Name | Type | Description |
|---|---|---|
background | string | color |
foreground | string | color |
template | string | a go text/template template extended with sprig utilizing the properties below - defaults to > |
Plantilla (info)
| Name | Type | Description |
|---|---|---|
.Root | boolean | is the current user root/admin or not |
.Shell | string | the current shell name |
.UserName | string | the current user name |
.HostName | string | the host name |