Sessie
Onofficiรซle Beta-vertaling
Deze pagina is vertaald door PageTurner AI (beta). Niet officieel goedgekeurd door het project. Een fout gevonden? Probleem melden โ
Watโ
Toont de huidige gebruikersnaam en hostnaam.
Voorbeeldconfiguratieโ
- json
- yaml
- toml
{
"type": "session",
"style": "diamond",
"foreground": "#ffffff",
"background": "#c386f1",
"leading_diamond": "๎ถ",
"trailing_diamond": "๎ฐ",
"template": "{{ if .SSHSession }}๎ฎฉ {{ end }}{{ .UserName }}"
}
type: session
style: diamond
foreground: "#ffffff"
background: "#c386f1"
leading_diamond: ๎ถ
trailing_diamond: ๎ฐ
template: "{{ if .SSHSession }}๎ฎฉ {{ end }}{{ .UserName }}"
type = "session"
style = "diamond"
foreground = "#ffffff"
background = "#c386f1"
leading_diamond = "๎ถ"
trailing_diamond = "๎ฐ"
template = "{{ if .SSHSession }}๎ฎฉ {{ end }}{{ .UserName }}"
Template (informatie)โ
standaardsjabloon
{{ if .SSHSession }}\ueba9 {{ end }}{{ .UserName }}@{{ .HostName }}
Eigenschappenโ
| Name | Type | Description |
|---|---|---|
.UserName | string | the current user's name |
.HostName | string | the current computer's name |
.SSHSession | boolean | active SSH session or not |
.Root | boolean | are you a root/admin user or not |