tangled
alpha
login
or
join now
jehrhardt.dev
/
dotfiles
My dotfiles for Arch Linux
2
fork
atom
overview
issues
pulls
pipelines
Add AGENTS.md
jehrhardt.dev
2 months ago
603ebd26
c7a597fd
verified
This commit was signed with the committer's
known signature
.
jehrhardt.dev
SSH Key Fingerprint:
SHA256:iExidi1b5V2HDQP713xpt4WD5vDEU3oyqxldaTWsx/I=
+17
1 changed file
expand all
collapse all
unified
split
AGENTS.md
+17
AGENTS.md
···
1
1
+
# Agent Instructions for Chezmoi Dotfiles
2
2
+
3
3
+
## Build & Test Commands
4
4
+
- **Apply**: `chezmoi apply` (deploys changes to home directory).
5
5
+
- **Diff**: `chezmoi diff` (previews changes; ALWAYS run this before applying).
6
6
+
- **Add**: `chezmoi add ~/.config/<path>` (imports existing files).
7
7
+
- **Test**: No automated tests. Verify changes by applying and checking application behavior.
8
8
+
9
9
+
## Code Style & Conventions
10
10
+
- **Structure**: Follow `chezmoi` conventions (`dot_` for hidden, `executable_` for scripts, `.tmpl` for templates).
11
11
+
- **Lua (Neovim)**: Use tabs for indentation. Return tables for plugins. Follow LazyVim specs.
12
12
+
- **Fish**: Use 4 spaces indentation. Guard interactive logic with `if status is-interactive`.
13
13
+
- **Formatting**: Mimic existing file indentation (mostly 4 spaces, Lua uses tabs).
14
14
+
- **Templating**: In `.tmpl` files, wrap Go template logic in `{{ ... }}`.
15
15
+
- **Imports**: Keep config minimal. Verify plugin/tool availability before adding config.
16
16
+
- **Comments**: Explain *why* a specific hack/setting is needed.
17
17
+
- **Safety**: Use absolute paths. Read files before editing to preserve context.