From 8fa93a270377447313e70339b6f76d1b198efc21 Mon Sep 17 00:00:00 2001 From: Antonin Ruan Date: Sat, 5 Oct 2024 23:38:55 -1000 Subject: [PATCH] Add session info in prompt during ssh session --- .p10k.omp.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.p10k.omp.yml b/.p10k.omp.yml index 6a54fe0..aae8465 100644 --- a/.p10k.omp.yml +++ b/.p10k.omp.yml @@ -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 "