Add session info in prompt during ssh session

This commit is contained in:
2024-10-05 23:38:55 -10:00
parent ce69b3ff62
commit 8fa93a2703

View File

@@ -82,6 +82,8 @@ blocks:
properties: properties:
fetch_virtual_env: true fetch_virtual_env: true
display_mode: environment display_mode: environment
fallback_names:
- "env"
- type: executiontime - type: executiontime
style: plain style: plain
@@ -92,6 +94,12 @@ blocks:
style: round style: round
threshold: 5000 threshold: 5000
- type: session
style: plain
template: "{{ if .SSHSession }} <#8a8a8a></> {{ .UserName }}@{{ .HostName }}{{ end }}"
background: parentBackground
foreground: "#d7af87"
- type: time - type: time
style: plain style: plain
template: " <#8a8a8a></> {{ .CurrentDate | date .Format }} \uf017 " template: " <#8a8a8a></> {{ .CurrentDate | date .Format }} \uf017 "