New template for path in omp.

This commit is contained in:
Bartek Stalewski 2024-07-05 18:47:59 +02:00
parent 0985bdab2b
commit 7543214e70
Signed by: ftpd
SSH Key Fingerprint: SHA256:vGQiaNJcfUMLt3wF58+Zx15C6SpRDA9spUeggjVY8Yo

View File

@ -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'