dorkhub

zsh-copilot

🧠 The Copilot that lives in your shell. Type in your thoughts, press ^Z and let the AI do it's magic ✨

Myzel394
Shellβ˜… 177β‘‚ 21 forksupdated 6 months ago
visit the demogit clone https://github.com/Myzel394/zsh-copilot.gitMyzel394/zsh-copilot

NOTICE: I'm slowly migrating my repositories to my own Git server. Please visit this repository at https://git.myzel394.app/Myzel394/zsh-copilot for the latest updates.

zsh-copilot

Get suggestions truly in your shell. No suggest bullshit. Just press CTRL + Z and get your suggestion.

out.mp4

Installation

Dependencies

Please make sure you have the following dependencies installed:

Oh My Zsh

  1. Clone zsh-copilot into $ZSH_CUSTOM/plugins (by default ~/.config/oh-my-zsh/custom/plugins)
git clone https://git.myzel394.app/Myzel394/zsh-copilot ${ZSH_CUSTOM:-~/.config/oh-my-zsh/custom}/plugins/zsh-copilot
  1. Add zsh-copilot to the plugins array in your .zshrc file:
plugins=( 
    # your other plugins...
    zsh-autosuggestions
)

Manual Installation

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:

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: If true, 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-copilot

Usage

Type in your command or your message and press CTRL + Z to get your suggestion!

more like this

perplexity-cli

🧠 A simple command-line client for the Perplexity API. Ask questions and receive answers directly from the terminal! πŸš€πŸš€πŸš€

Pythonβ˜… 176

AeroPath

:hugs: AeroPath: An airway segmentation benchmark dataset with challenging pathology

Jupyter Notebookβ˜… 53

BrainAI

BrainAI is a set of helper classes to add AI to your game.

C#β˜… 53

search

search projects, people, and tags