From d33ced809321083e56025d752624ef7b193e263b Mon Sep 17 00:00:00 2001 From: mono Date: Fri, 23 Aug 2024 18:46:58 +0900 Subject: [PATCH] Tweak --- src/.chezmoiexternal.toml.tmpl | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/src/.chezmoiexternal.toml.tmpl b/src/.chezmoiexternal.toml.tmpl index 84bf5e0..87a6d2b 100644 --- a/src/.chezmoiexternal.toml.tmpl +++ b/src/.chezmoiexternal.toml.tmpl @@ -1,13 +1,14 @@ -{{- $refreshPeriod := "168h" -}} - -{{- $goss := "" -}} -{{- if eq .chezmoi.os "darwin" -}} -{{- $goss = "goss-darwin-amd64" -}} -{{- else if eq .chezmoi.os "linux" -}} -{{- $goss = "goss-linux-amd64" -}} -{{- else if eq .chezmoi.os "windows" -}} -{{- $goss = "goss-windows-amd64.exe" -}} -{{- end -}} +{{ $refreshPeriod := "168h" -}} + +{{ $goss := "" -}} +{{ if eq .chezmoi.os "darwin" -}} +{{ $goss = "goss-darwin-amd64" -}} +{{ else if eq .chezmoi.os "linux" -}} +{{ $goss = "goss-linux-amd64" -}} +{{ else if eq .chezmoi.os "windows" -}} +{{ $goss = "goss-windows-amd64.exe" -}} +{{ end -}} + {{ if ne $goss "" -}} ["bin/goss"] type = "file" @@ -16,12 +17,12 @@ refreshPeriod = "{{ $refreshPeriod }}" {{ end -}} -{{- $nvim := "" -}} -{{- if eq .chezmoi.os "windows" -}} -{{- $nvim = "AppData/Local/nvim" -}} -{{- else -}} -{{- $nvim = ".config/nvim" -}} -{{- end -}} +{{ $nvim := "" -}} +{{ if eq .chezmoi.os "windows" -}} +{{ $nvim = "AppData/Local/nvim" -}} +{{ else -}} +{{ $nvim = ".config/nvim" -}} +{{ end -}} ["{{ $nvim }}/pack/vendor/start/copilot.vim"] type = "git-repo"