Skip to content
forked from ibigio/shell-ai

A delightfully minimal, yet remarkably powerful AI Shell Assistant.

License

Notifications You must be signed in to change notification settings

mvtply/shell-ai

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShellAI

A delightfully minimal, yet remarkably powerful AI Shell Assistant.

shell-ai-demo

"Ten minutes of Googling is now ten seconds in the terminal."

~ Joe C.

Install

brew tap ibigio/tap
brew install shell-ai

or

curl https://raw.githubusercontent.com/ibigio/shell-ai/main/install.sh | bash

and set your OPENAI key (get one here) like so:

export OPENAI_API_KEY=[your key]

(Don't forget to set up billing with OpenAI.)

Usage

Type q followed by a description of a shell command you want to write!

Nice for beginners...

$ q make a new git branch
git branch <branch-name>

...and those who forget how to use find, like me.

$ q find files that contain "administrative" in the name
find . -name "*administrative*"
I want even more power.
By default this tool uses the `gpt-3.5-turbo` model, but if you want to use `gpt-4` you can override like so:
export OPENAI_MODEL_OVERRIDE="gpt-4"

More Sample Use Cases

$ q print my local ip formatted like so "ip: [ip]" for mac
ifconfig | grep "inet " | grep -v 127.0.0.1 | awk '{print "ip: " $2}'
$ q how do i set up a new nextjs project
To set up a new Next.js project, first make sure you have Node.js installed. Then, run the following command in your terminal:

npx create-next-app your-project-name
$ q what is the meaning of life
42

About

A delightfully minimal, yet remarkably powerful AI Shell Assistant.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 92.7%
  • Shell 7.3%