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'