dotfiles
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDotfiles
Dotfiles
Two directions of work against .
They are opposites and must not be confused: changes the repository for every
machine, changes this one machine to match the repository.
bmthd/dotfilesprapply| Subcommand | Direction | Read |
|---|---|---|
| repository ← change, opened as a PR | pr.md |
| this machine ← repository | apply.md |
Read the subcommand's file before doing anything. The procedures are detailed and
neither is safe to improvise.
| 子命令 | 操作方向 | 参考文档 |
|---|---|---|
| 仓库 ← 变更(以PR形式提交) | pr.md |
| 当前机器 ← 仓库 | apply.md |
操作前务必阅读对应子命令的文档。 流程细节详尽,切勿随意操作。
Routing
路由规则
- starts with
args— the rest is the change to make. If nothing follows, ask what to change.pr - starts with
args(or is empty and the user is reacting to an update notification) — read apply.md.apply - Neither, and the intent is unclear: ask which one. Do not guess from the current
directory — being inside a dotfiles checkout does not mean the user wants .
pr
- 若以
args开头——后续内容即为要做的变更。若pr后无内容,请询问具体变更内容。pr - 若以
args开头(或为空且用户正响应更新通知)——请阅读apply.md。apply - 若既不属于上述情况,且用户意图不明确:请询问用户要执行哪种操作。不要根据当前目录猜测——即使处于dotfiles检出目录中,也不代表用户想要执行操作。
pr
Repository facts
仓库相关说明
Both subcommands rely on these.
- Setup logic lives in , not
.mise.toml.install.shis only a bootstrapper (install mise → place the config →install.sh→mise install). Changes to tools, environment, or setup steps belong inmise run setup..mise.toml - is installed to
.mise.tomlas the global mise config, so its tasks run from any directory.~/.config/mise/config.toml - Most skills are no longer in this repository. The portable ones moved to
. What remains under
bmthd/skillsis this.agents/skills/skill, which only makes sense against this repository. Third-party skills are installed from their upstream by thedotfilestask rather than vendored.setup:skills - CI () runs
.github/workflows/quality.yml,mise ls, ShellCheck,mise tasks ls,bash -n, and the scripts underzsh -n.tests/
两个子命令均依赖以下信息:
- 配置逻辑存于,而非
.mise.toml。install.sh仅为引导程序(安装mise → 放置配置文件 →install.sh→mise install)。工具、环境或配置步骤的变更应写入mise run setup。.mise.toml - 会被安装到
.mise.toml,作为全局mise配置,因此其任务可在任意目录执行。~/.config/mise/config.toml - 大部分skills已不在此仓库中。可移植的skills已迁移至。
bmthd/skills下仅保留本.agents/skills/skill,该skill仅针对此仓库生效。第三方skills由dotfiles任务从其上游仓库安装,而非内嵌在本仓库中。setup:skills - CI()会执行
.github/workflows/quality.yml、mise ls、ShellCheck、mise tasks ls、bash -n以及zsh -n目录下的脚本。tests/