Added SSH Session in OMP

This commit is contained in:
mattr
2024-10-05 15:54:31 -05:00
parent 82705536c2
commit 31bb87195a

View File

@@ -11,12 +11,19 @@ console_title_template = '{{ .Shell }} in {{ .Folder }}'
type = 'path'
style = 'plain'
background = 'transparent'
foreground = 'blue'
foreground = 'p:orange'
template = "{{ .Path }}"
[blocks.segments.properties]
style = 'full'
[[blocks.segments]]
type = 'session'
style = 'plain'
foreground = 'blue'
background = 'transparent'
template = '{{ if .SSHSession }} {{.UserName}}@{{.HostName}}{{end}}'
[[blocks.segments]]
type = 'git'
style = 'plain'