Add session info in prompt during ssh session
This commit is contained in:
@@ -82,6 +82,8 @@ blocks:
|
||||
properties:
|
||||
fetch_virtual_env: true
|
||||
display_mode: environment
|
||||
fallback_names:
|
||||
- "env"
|
||||
|
||||
- type: executiontime
|
||||
style: plain
|
||||
@@ -92,6 +94,12 @@ blocks:
|
||||
style: round
|
||||
threshold: 5000
|
||||
|
||||
- type: session
|
||||
style: plain
|
||||
template: "{{ if .SSHSession }} <#8a8a8a></> {{ .UserName }}@{{ .HostName }}{{ end }}"
|
||||
background: parentBackground
|
||||
foreground: "#d7af87"
|
||||
|
||||
- type: time
|
||||
style: plain
|
||||
template: " <#8a8a8a></> {{ .CurrentDate | date .Format }} \uf017 "
|
||||
|
||||
Reference in New Issue
Block a user