Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

Attempt at using ChatGPT to issue commands based on comments in the terminal.

License

Notifications You must be signed in to change notification settings

MahdeenSky/ChatGPT-Terminal-Completion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatGPT-Terminal-Completion

Attempt at using ChatGPT to issue commands based on comments in the terminal. (Python 3.9+)

Supports MacOS, uses pbcopy to copy to clipboard

Implements how command for querying ChatGPT.

ezgif-2-e5baff6ad3

Setup

  1. Install python packages using pip3 install -r requirements.txt
  2. Put the function in script.sh to your bashrc/zshrc configuration file.
  3. Replace the path in the function with the path to your python file.
  4. Make a new .env file in the python file directory with your email and password formatted like
  5. That should be everything
export EMAIL=email_chatgpt
export PWD=your_password
git clone git@github.com:MahdeenSky/ChatGPT-Terminal-Completion.git ~/.chatgpt_completion
cd ~/.chatgpt_completion
pip3 install -r requirements.txt
cat script.sh|sed -r "s|\"Directory of the script\"|`pwd`|g" >>~/.${SHELL##*/}rc
echo "email=${EMAIL}" >> .env
echo "password=${PWD}" >> .env
source ~/.${SHELL##*/}rc

Support

For linux, an alternate copy to clipboard command is to use xsel or xclip and replacing the current copy command with said commands.

Reference

https://github.com/acheong08/ChatGPT

Releases

No releases published

Packages

No packages published