Simple bash script that helps you with bash commands using the Power of AI
- 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
- Bash terminal
- Open AI api key from https://platform.openai.com/account/api-keys
-
Download the Awesome Bash Script using curl:
$ curl -O https://raw.githubusercontent.com/zmsp/ask-bash/main/ask
-
Make the script executable:
$ chmod +x ask
-
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
-
Profit
ask --help ask delete all files recursively on root directory Verbose turned on Command: rm -rf /* Run the command? (y/n): n Nope...
For more information and available options, refer to the built-in help:
ask help
$ ask untar a directory
Welcome contributions! If you find a bug or have a suggestion, please open an issue or submit a pull request.
This project is licensed under the MIT License.
Happy scripting!