From c9fefbf7e2014c5d10883ecaea57b1d46f9be821 Mon Sep 17 00:00:00 2001 From: jolheiser Date: Mon, 21 Oct 2024 19:31:03 -0500 Subject: [PATCH] fix: hide git prompt when using jj Signed-off-by: jolheiser --- apps/nogui/ohmyposh/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/nogui/ohmyposh/config.json b/apps/nogui/ohmyposh/config.json index d5387c5..22a95bf 100644 --- a/apps/nogui/ohmyposh/config.json +++ b/apps/nogui/ohmyposh/config.json @@ -56,7 +56,7 @@ } }, "style": "powerline", - "template": " {{ if .UpstreamURL }}{{ url .UpstreamIcon .UpstreamURL }} {{ end }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }} ", + "template": "{{ if not (glob \".jj\")}} {{ if .UpstreamURL }}{{ url .UpstreamIcon .UpstreamURL }} {{ end }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }} {{ end }}", "type": "git" }, {