Giter Site home page Giter Site logo

how's Introduction

How

Disclaimer: This is currently only for Linux and isn't built for Windows or Mac.

How is an AI-powered tool to create tailored commands all within the comforts of your shell!

Installation

You can download the binary from the latest release.

Or you can build from source (requires Deno):

git clone https://github.com/vandesm14/how.git
cd how

chmod +x build.sh
./build.sh

Usage

Prerequisites

You will need to get an API key from OpenAI. Once you have that, you can either:

Use the environment variable

HOW_OPENAI_KEY=<your key> how to <your prompt>

Use the config editor

how config key <your key>

Prompting the AI

# how to <your prompt>

$ how to create a new file
# Do you want to run the following command(s)?
# touch file.txt [y/N] y
# $ touch shane.txt

Contributing

Pull requests are welcome. For major changes, please open an issue to discuss what you would like to change.

FAQ

How do I change my privacy settings?

When you first run how (such as how to get the time), our magical wizard will ask you a few questions. This will include whether you would like to send extra contextual data in the prompt to OpenAI such as your username and OS distro.

You can change this at any time by running how config anonymous <true | false>. This will update the config file located at ~/.config/how/config.json.

Where is the data stored?

All data related to how is stored in the ~/.config/how directory. This includes the config file and history.

How do I edit the data sent to OpenAI?

Configuring the data sent to OpenAI is not editable via config. Instead, it requires a rebuild of the binary. To do this, you will need to:

  1. Clone the repository
  2. Edit the lib/prompt.ts file to your liking
  3. Build the project (see Installation)

how's People

Contributors

leonskidev avatar vandesm14 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.