Generate opencode's config from a tracked template, with matching commands, agents and pwswitch
This commit is contained in:
1 parent
68c7d6a3ea
commit
a987cbab66
16 files changed
+531
-25
No files matched your search
@@ -46,9 +46,22 @@ link agents/rules ~/.claude/rules
|
||||
# what the SSH Hosts launcher command reads.
|
||||
link ssh/config ~/.ssh/config
|
||||
|
||||
# ── Scripts ──────────────────────────────────────────────────────────────────
|
||||
# Personal commands wanted on every machine, desktop or server. ~/.local/bin is
|
||||
# on PATH in both shell configs. pwswitch toggles passwordless sudo through a
|
||||
# sudoers.d drop-in, so an agent can run sudo and the password comes back after.
|
||||
link bin/pwswitch ~/.local/bin/pwswitch
|
||||
|
||||
# ── Espanso ──────────────────────────────────────────────────────────────────
|
||||
# The personal expansion triggers. Copied rather than linked, because this is a
|
||||
# file each machine may add its own triggers to. It lands before setup-identity
|
||||
# runs, and that stage only seeds a file that does not exist yet, so what is
|
||||
# tracked here wins over the name and email the interview would have written.
|
||||
copy espanso/identity.yml ~/.config/espanso/match/identity.yml
|
||||
|
||||
# ── OpenCode ─────────────────────────────────────────────────────────────────
|
||||
# Claude Code carries its commands and agents as plugins, which opencode cannot
|
||||
# read. These two directories hold the same capabilities in opencode's own
|
||||
# format, so the command I type in one tool exists in the other.
|
||||
linkdir agents/commands ~/.config/opencode/commands
|
||||
linkdir agents/agents ~/.config/opencode/agents
|
||||
Reference in new issue
Block a user