mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-03 07:17:26 -08:00
801 B
801 B
id | title | sidebar_label |
---|---|---|
session | Session | Session |
What
Show the current user and host name.
Sample Configuration
{
"type": "session",
"style": "diamond",
"foreground": "#ffffff",
"background": "#c386f1",
"leading_diamond": "\uE0B6",
"trailing_diamond": "\uE0B0",
"template": "{{ if .SSHSession }}\uF817 {{ end }}{{ .UserName }}"
}
Template (info)
:::note default template
{{ if .SSHSession }}\uf817 {{ end }}{{ .UserName }}@{{ .HostName }}
:::
Properties
.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