This was made as a hackathon project for HackThisFall 2024
Always Two command ahead. A Shell faster than your thoughts.
Shells are supposed to be fast, but integrating AI in them makes them slow. So, we combined the capadilities of a users clipboard and ai models to make this super fasttt.
- Create a
.t.env
file in your home directory.
{
# gemini
"gemini_apiKey":"API_KEY",
# open ai
"azure_endpoint": "API_ENDPOINT",
"azure_apiKey": "API_KEY_OPENAI",
"azure_deploymentName": "API_DEPLOYMENT_NAME",
}
- To install dependencies:
bun install
- Link the cli
bun link
bun link cli
- Usuage
naash
- if you do not have a
open ai
key you can just use thegemini_apiKey
but you won't be able to use theswitchAI
command.
-
Look through users clipboard hitory, to auto suggest commands, eg: if the url has
https://github.com/Sushants-Git/team-gap
then auto suggestgit clone https://github.com/Sushants-Git/team-gap
and same forwget
,npm
,brew
and more. -
hm
(help me), look throughnaash
custom error stack that stores all terminal errors that a user has encountered, and using that to suggest a correct command and getting it copied straight to users clipboard. -
he
(help explain), explain things about the terminal that the user wants to know. -
Multi-Model, no vendor look in you can switch between
openai
andgemini
models.