From 3162fb00afaaa0cbdfa6c5c6e6f0f670f9cc7487 Mon Sep 17 00:00:00 2001 From: Christopher Beckmann Date: Sun, 30 Apr 2023 19:12:37 +0200 Subject: [PATCH] Update '.omp.json' --- .omp.json | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 59 insertions(+), 6 deletions(-) diff --git a/.omp.json b/.omp.json index c811ad5..447f207 100644 --- a/.omp.json +++ b/.omp.json @@ -11,25 +11,58 @@ ], "foreground": "p:tertiary_font", "style": "plain", - "template": " {{ .UserName }} {{ if .Root }}<#FF0000,p:secondary>{{ else }}{{ end }}", + "template": " {{ .UserName }}{{ if .SSHSession }}@{{.HostName }}{{ end }} {{ if .Root }}<#FF0000,p:secondary>{{ else }}{{ end }}", "type": "session" }, { "foreground": "p:secondary_font", "background": "p:secondary", + "style": "plain", + "powerline_symbol": "", "properties": { "style": "full" }, - "style": "plain", "template": " {{ .Path }} ", - "type": "path" + "type": "path", + "min_width": 80 + }, + { + "foreground": "p:secondary_font", + "background": "p:secondary", + "style": "plain", + "powerline_symbol": "", + "properties": { + "style": "agnoster", + "folder_icon": "", + "mixed_threshold": 2 + }, + "template": " {{ .Path }} ", + "type": "path", + "max_width": 79 }, { "foreground": "p:tertiary_font", "background": "p:tertiary", + "style": "powerline", + "powerline_symbol": "", + "template": "{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }} ", + "properties": { + "fetch_status": true, + "fetch_upstream_icon": true + }, + "type": "git", + "min_width": 80 + }, + { + "type": "executiontime", "style": "plain", - "template": " {{ .HEAD }} ", - "type": "git" + "foreground": "p:secondary_font", + "background": "transparent", + "template": " {{ .FormattedMs }} ", + "properties": { + "threshold": 1000, + "style": "roundrock" + } }, { "foreground": "p:accent", @@ -41,13 +74,33 @@ "always_enabled": true }, "style": "plain", - "template": " ", + "template": "", "type": "exit" } ], "type": "prompt" } ], + "tooltips": [ + { + "type": "git", + "tips": [ + "git", + "g" + ], + "style": "powerline", + "foreground": "p:tertiary_front", + "background": "p:tertiary", + "powerline_symbol": "", + "template": " {{ .HEAD }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }} ", + "properties": { + "fetch_status": true, + "fetch_upstream_icon": true + }, + "max_width": 79 + } + ], + "final_space": true, "version": 2, "palette": { "accent": "#0ca8fb",