LinuxGPT
Script that integrates ChatGPT into Linux CLI
1.) Save the script as "ask" to your /usr/local/bin
2.) Make the script executable by running:
- chmod +x ask
3.) Set the Environment Variable in a Secure File:
- echo 'export OPENAI_API_KEY="your_openai_api_key_here"' > ~/.openai_key
4.) Create a file to store your API key and set the appropriate permissions:
- chmod 600 ~/.openai_key
5.) Test script by asking a question:
- ask How do I integrate ChatGPT into the Linux CLI?