Skip to content

Commit 8ec960f

Browse files
committed
refactor(git): gitstatus config
1 parent a05551d commit 8ec960f

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

root/private_dot_config/mr/groups.d/00-personal.tmpl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,12 @@ checkout =
3535
update = gplmod --ff-only
3636

3737

38-
{{
39-
if (joinPath .chezmoi.homeDir ".zprezto"
40-
"modules/prompt/external/powerlevel10k/gitstatus" | stat)
38+
{{ $gitstatus := joinPath .chezmoi.homeDir ".zprezto"
39+
"modules/prompt/external/powerlevel10k/gitstatus" -}}
40+
{{-
41+
if stat $gitstatus
4142
-}}
42-
[.zprezto/modules/prompt/external/powerlevel10k/gitstatus]
43+
[ {{- trimPrefix .chezmoi.homeDir $gitstatus | trimPrefix "/" -}} ]
4344
order = 9
4445
checkout = :
4546
update = :

0 commit comments

Comments
 (0)