Add session info in prompt during ssh session
This commit is contained in:
@@ -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 "
|
||||||
|
|||||||
Reference in New Issue
Block a user