Get suggestions truly in your shell. No suggest bullshit. Just press CTRL + Z and get your suggestion.
out.mp4
Please make sure you have the following dependencies installed:
git clone https://github.com/Myzel394/zsh-copilot.git ~/.zsh-copilot
echo "source ~/.zsh-copilot/zsh-copilot.plugin.zsh" >> ~/.zshrcYou need to have an API key for either OpenAI or Anthropic to use this plugin. Expose this via the appropriate environment variable:
For OpenAI (default):
export OPENAI_API_KEY=<your-openai-api-key>For Anthropic:
export ANTHROPIC_API_KEY=<your-anthropic-api-key>You can configure the AI provider using the ZSH_COPILOT_AI_PROVIDER variable:
export ZSH_COPILOT_AI_PROVIDER="openai" # or "anthropic"Other configuration options:
ZSH_COPILOT_KEY: Key to press to get suggestions (default: ^z)ZSH_COPILOT_SEND_CONTEXT: Iftrue, zsh-copilot will send context information to the AI model (default: true)ZSH_COPILOT_DEBUG: Enable debug logging (default: false)
To see all available configurations and their current values, run:
zsh-copilotType in your command or your message and press CTRL + Z to get your suggestion!