Skip to content

Latest commit

 

History

History
66 lines (47 loc) · 1.43 KB

README.md

File metadata and controls

66 lines (47 loc) · 1.43 KB

ask-AI Bash Script

Simple bash script that helps you with bash commands using the Power of AI

Alt Text

Features

  • Generates Bash commands tailored to your specific task
  • Makes use of the OpenAI API for intelligent command generation
  • Easy to use and execute with simple command-line interface

Requirements

Installation

  1. Download the Awesome Bash Script using curl:

    $ curl -O https://raw.githubusercontent.com/zmsp/ask-bash/main/ask
  2. Make the script executable:

    $ chmod +x ask
  3. Update some environmental variables:

     export PATH="$PATH:/path/to/ask"
     export VERBOSE="false"       Disable verbose mode
     export OPEN_AI_KEY="REPLACE_ME_XXXX"     Specify your OPEN-AI key from https://platform.openai.com/account/api-keys
  4. Profit

     ask --help
     ask delete all files recursively on root directory
     Verbose turned on
     Command:
     rm -rf /*
     Run the command? (y/n): n
     Nope...

Usage

For more information and available options, refer to the built-in help:

ask help
$ ask untar a directory

Contributing

Welcome contributions! If you find a bug or have a suggestion, please open an issue or submit a pull request.

License

This project is licensed under the MIT License.


Happy scripting!