Skip to content

This is a ZSH plugin that enables you to use codelama in the command line.

License

Notifications You must be signed in to change notification settings

KukumavMozolo/zsh_starcodex

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⌨️ 🦾 Zsh Starcodex

AI in the command line.

License

https://github.com/KukumavMozolo/zsh_starcodex

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 codelama in the command line. No internet connection required. Tested with linux only though.

How do I install it?

Manual Installation

  1. Install https://github.com/ggerganov/llama.cpp download codelama, e.g. https://huggingface.co/TheBloke/CodeLlama-34B-Instruct-GGUF model.

  2. Download the ZSH plugin.

git clone https://github.com/KukumavMozolo/zsh_starcodex.git ~/.oh-my-zsh/custom/plugins/zsh_starcodex 
  1. Add the following to your .zshrc file.

Using oh-my-zsh:

    plugins=(zsh_starcodex)
    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_starcodex
    export ZSH_CUSTOM="your/custom/path"
    source "$ZSH_CUSTOM/plugins/zsh_starcodex/zsh_starcodex.plugin.zsh"
    bindkey '^X' create_completion
  1. Edit the config.json in ~/.oh-my-zsh/custom/plugins/zsh_starcodex/ so that path_to_starcoder_cpp_main points to your starcoder.cpp directory

  2. Run zsh, start typing and complete it using ^X([Ctrl] + X)! and use Tap select an option

About

This is a ZSH plugin that enables you to use codelama in the command line.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 70.4%
  • Python 29.6%