Skip to content
/ ask-bash Public

simple bash script that helps you with terminal commands with the power of chatgpt

Notifications You must be signed in to change notification settings

zmsp/ask-bash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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!

About

simple bash script that helps you with terminal commands with the power of chatgpt

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages