cnb-rs 是一个非官方的 CNB (cnb.cool) 命令行工具。
brew tap wwvo/cnb-rs https://cnb.cool/wwvo/cnb-rs/homebrew-cnb-rs.git brew install wwvo/cnb-rs/cnb-rs
brew upgrade cnb-rs
主仓库的命令入口已从 cnb 改为 cnb-rs。
如果你仍希望继续输入 cnb,可以在 shell 配置中添加 alias:
alias cnb='cnb-rs'
Homebrew Formula 会随安装过程生成补全脚本。
如果你的 shell 已经正确启用了 Homebrew 的 completion 支持,通常不需要额外配置。
如果补全没有自动生效,请参考 Homebrew 官方文档为当前 shell 打开 completion 支持:
对通过 Homebrew 安装的 cnb-rs,常见场景主要是 bash、zsh 和 fish。
安装完成后,请重启终端或执行相应的 shell 重载命令使补全生效:
Bash:
source ~/.bashrc
Zsh:
source ~/.zshrc
Fish:
source ~/.config/fish/config.fish