Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions chezmoi/private_dot_claude/modify_CLAUDE.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{{- /*chezmoi:modify-template*/ -}}
{{- $currentContent := .chezmoi.stdin -}}
{{- $marker := "<!-- CHEZMOI_END -->" -}}
{{- $current := .chezmoi.stdin -}}
{{- $marker := "<!-- chezmoi:end -->" -}}

{{- printf "%s\n" "@AGENTS.md" -}}
{{- printf "%s\n" $marker -}}

{{- /*Extract and append only the plugin modifications */ -}}
{{- if contains $marker $currentContent -}}
{{- if contains $marker $current -}}
{{- /* Split the file by the marker and grab everything after it*/ -}}
{{- $splitContent := splitList $marker $currentContent -}}
{{- $splitContent := splitList $marker $current -}}
{{- printf "%s" (index $splitContent 1 | trim) -}}
{{- end -}}
8 changes: 4 additions & 4 deletions chezmoi/private_dot_config/opencode/modify_AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{{- /*chezmoi:modify-template*/ -}}
{{- $currentContent := .chezmoi.stdin -}}
{{- $marker := "<!-- CHEZMOI_END -->" -}}
{{- $current := .chezmoi.stdin -}}
{{- $marker := "<!-- chezmoi:end -->" -}}

{{- printf "%s\n" (includeTemplate "AGENTS.md") -}}
{{- printf "%s\n" $marker -}}

{{- /*Extract and append only the plugin modifications*/ -}}
{{- if contains $marker $currentContent -}}
{{- if contains $marker $current -}}
{{- /*Split the file by the marker and grab everything after it*/ -}}
{{- $splitContent := splitList $marker $currentContent -}}
{{- $splitContent := splitList $marker $current -}}
{{- printf "%s" (index $splitContent 1 | trim) -}}
{{- end -}}
7 changes: 7 additions & 0 deletions chezmoi/private_dot_config/opencode/modify_opencode.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{{- /* chezmoi:modify-template */ -}}
{{- $current := dict -}}
{{- if .chezmoi.stdin | trim -}}
{{- $current = fromJson .chezmoi.stdin -}}
{{- end -}}
{{- $chezmoi := includeTemplate "opencode.json" . | fromJson -}}
{{ mergeOverwrite $current $chezmoi | toPrettyJson }}
7 changes: 7 additions & 0 deletions chezmoi/private_dot_config/opencode/modify_tui.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{{- /* chezmoi:modify-template */ -}}
{{- $current := dict -}}
{{- if .chezmoi.stdin | trim -}}
{{- $current = fromJson .chezmoi.stdin -}}
{{- end -}}
{{- $chezmoi := includeTemplate "tui.json" . | fromJson -}}
{{ mergeOverwrite $current $chezmoi | toPrettyJson }}
Loading