脚本功能
安装
inject 幂等:重跑不会重复追加。完成后重启 shell 或 source ~/.zshrc 即可在任意目录直接调用。
功能表
迁移说明(旧名已移除)
mergec/mergedev/mergem/merget→merge_canary/merge_develop/merge_auto/merge_testpushc/pushdev/pushm/pusht→push_canary/push_develop/push_auto/push_testpushc_all已并入push_*:在非 git 目录执行即自动批量,自动执行无确认,--dry-run预览。
环境变量
BATCH_CONCURRENCY:批量操作(push_*/switch_branch/sync_branch/sync_master)并行并发上限,默认4。例:BATCH_CONCURRENCY=8 push_canary。
环境依赖
- Python 3.10+(薄壳与核心逻辑)
- Git(merge_* / push_* / switch_branch / sync_master / fetch_all / delete_branch)
- macOS(
n用say,unsleep用caffeinate) - rich(输出美化,
pip install rich) - pgrep / ps / lsof / kill(kk / kkp)