feat(completion): 自动安装 shell 补全,迁移旧配置并清理手动补全
This commit is contained in:
@@ -12,9 +12,17 @@ mytoolkit templates list # verify bundled templates are fou
|
||||
|
||||
`make install` 会同时:
|
||||
1. 用 editable 模式安装 `mytoolkit`;
|
||||
2. 生成 zsh/bash 补全;
|
||||
2. 自动安装 zsh/bash 补全到当前 Python prefix 的共享目录;
|
||||
3. 把 bundled Claude skill 同步到 `~/.claude/skills/mytoolkit/`。
|
||||
|
||||
补全由 `mytoolkit` 自己管理,无需手动写 `~/.local/bin/completions`,也无需在 `.zshrc` 里 `eval`。首次运行任意 `mytoolkit` 命令时会自动补齐;也可以手动检查状态:
|
||||
|
||||
```bash
|
||||
mytoolkit completion doctor
|
||||
mytoolkit completion install # 手动重装补全
|
||||
mytoolkit completion zsh # 打印 zsh 补全脚本
|
||||
```
|
||||
|
||||
单独同步 skill(不重装 Python 包):
|
||||
|
||||
```bash
|
||||
@@ -58,6 +66,7 @@ mytoolkit --help
|
||||
| `server` | Manage dev/serve servers |
|
||||
| `update` | Reinstall from local repo |
|
||||
| `uninstall` | Uninstall |
|
||||
| `completion` | Install/inspect shell tab-completion scripts (`install` / `uninstall` / `doctor` / `zsh` / `bash`) |
|
||||
|
||||
For any subcommand: `mytoolkit <cmd> --help`.
|
||||
|
||||
@@ -85,7 +94,7 @@ Registry is stored at `~/.mytoolkit/templates.json` (or `$MYTOOLKIT_HOME/templat
|
||||
mytoolkit init paper <dir> # create a LaTeX paper project (Elsevier elsarticle, xelatex, fully portable)
|
||||
```
|
||||
|
||||
This generates `main.tex`, `Makefile`, `references.bib`, `diffpreamble.dtx`, `figs/`, `analysis/`.
|
||||
This generates `main.tex`, `Makefile`, `references.bib`, `diffpreamble.dtx`, `figs/`.
|
||||
|
||||
### Journal submission kits
|
||||
|
||||
|
||||
Reference in New Issue
Block a user