feat: Add instructions for oh my zsh

This commit is contained in:
Myzel394 2025-06-07 23:10:28 +02:00
parent 0bc635926b
commit 75e47a9beb
Signed by: Myzel394
GPG Key ID: 79E65B4AA44EBBF0

View File

@ -15,12 +15,31 @@ Please make sure you have the following dependencies installed:
* [jq](https://github.com/jqlang/jq)
* [curl](https://github.com/curl/curl)
### Oh My Zsh
1. Clone `zsh-copilot` into $ZSH_CUSTOM/plugins (by default ~/.oh-my-zsh/custom/plugins)
```sh
git clone https://github.com/Myzel394/zsh-copilot.git ~/.zsh-copilot
echo "source ~/.zsh-copilot/zsh-copilot.plugin.zsh" >> ~/.zshrc
git clone https://git.myzel394.app/Myzel394/zsh-copilot ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
```
### Configuration
2. Add `zsh-copilot` to the plugins array in your `.zshrc` file:
```sh
plugins=(
# your other plugins...
zsh-autosuggestions
)
```
### Manual Installation
```sh
git clone https://git.myzel394.app/Myzel394/zsh-copilot ~/.config/zsh-copilot
echo "source ~/.config/zsh-copilot/zsh-copilot.plugin.zsh" >> ~/.zshrc
```
## Configuration
You need to have an API key for either OpenAI or Anthropic to use this plugin. Expose this via the appropriate environment variable: