Giter Site home page Giter Site logo

zsh_openai's Introduction

⌨️ 🦾 Zsh Open AI

AI in the command line.

You just need to write a comment or variable name and the AI will write the corresponding code.

What is it?

This is a ZSH plugin that enables you to use OpenAI's powerful AI in the command line. OpenAI is the AI that also powers GitHub Copilot.

How do I install it?

Manual Installation

  1. Install the OpenAI package.
pip3 install openai
  1. Download the ZSH plugin.
git clone https://github.com/alexclaz/zsh_openai.git ~/.oh-my-zsh/custom/plugins/zsh_openai
  1. Add the following to your .zshrc file.

Using oh-my-zsh:

    plugins=(zsh_openai)
    bindkey '^X' create_completion

Without oh-my-zsh:

    # in your/custom/path you need to have a "plugins" folder and in there you clone the repository as zsh_openai
    export ZSH_CUSTOM="your/custom/path"
    source "$ZSH_CUSTOM/plugins/zsh_openai/zsh_openai.plugin.zsh"
    bindkey '^X' create_completion
  1. Create a file called openaiapirc in ~/.config with your ORGANIZATION_ID and SECRET_KEY.
[openai]
organization_id = ...
secret_key = ...
  1. Run zsh, start typing and complete it using ^X!

Buy a coffee to the original creator: TomDoerr
Buy Me A Coffee

zsh_openai's People

Contributors

tom-doerr avatar alexlazarini avatar akinazuki avatar ibayramli avatar johnkegd avatar paulomoreira1180778 avatar coffebar avatar manekinekko avatar clotodex avatar fbarez avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.