一个利用 ChatGPT 生成命令行的小工具
A small tool that uses ChatGPT to generate a command line
OPENAI_API_KEY
:OpenAI API KEYHTTPS_PROXY
: A ChatGPT available proxy (optional)
cargo build --release --locked
或
cargo install --locked --path .
- put
/plugins/
under$ZSH_CUSTOM
(by default:~/.oh-my-zsh/custom/plugins/cg/cg.plugin.zsh
), - Add the plugin to the list of plugins for Oh My Zsh to load (inside
.zshrc
)
plugins=(
# other plugins...
cg
)