Skip to main content

Session

Whatโ€‹

Show the current user and host name.

Sample Configurationโ€‹

{
"type": "session",
"style": "diamond",
"foreground": "#ffffff",
"background": "#c386f1",
"leading_diamond": "๎‚ถ",
"trailing_diamond": "๎‚ฐ",
"template": "{{ if .SSHSession }}๎ฎฉ {{ end }}{{ .UserName }}"
}

Template (info)โ€‹

default template
{{ if .SSHSession }}\ueba9 {{ end }}{{ .UserName }}@{{ .HostName }}

Propertiesโ€‹

NameTypeDescription
.UserNamestringthe current user's name
.HostNamestringthe current computer's name
.SSHSessionbooleanactive SSH session or not
.Rootbooleanare you a root/admin user or not