Aller au contenu principal

Shell

Traduction Bêta Non Officielle

Cette page a été traduite par PageTurner AI (bêta). Non approuvée officiellement par le projet. Vous avez trouvé une erreur ? Signaler un problème →

Description

Affiche le nom du shell actuel (zsh, PowerShell, bash, ...).

Exemple de configuration

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

Options

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

Modèle (info)

modèle par défaut
{{ .Name }}

Propriétés

NameTypeDescription
.Namestringthe shell name
.Versionstringthe shell version