From 7543214e70a6653aff5d46ec34912ce07a9bbcb4 Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Fri, 5 Jul 2024 18:47:59 +0200 Subject: [PATCH] New template for path in omp. --- config/omp/omp.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/omp/omp.toml b/config/omp/omp.toml index fa90e53..c8bccca 100644 --- a/config/omp/omp.toml +++ b/config/omp/omp.toml @@ -30,7 +30,7 @@ alignment = 'left' style = 'plain' background = 'transparent' foreground = '37' - template = '{{ if not .Writable }} {{ end }}{{ .Path }} ' + template = '{{ if not .Writable }} {{ end }}{{ $segment := .Segments.Git }}{{ if $segment.Dir }}{{ $segment.RepoName}}{{if ne $segment.RepoName .Path}}{{ trimPrefix $segment.Dir .PWD }}{{ end }}{{ else }}{{ .Path }}{{ end }} ' [blocks.segments.properties] style = 'full'