GPT-powered bash commands.
Project description
gpt-do
This is a handy-dandy CLI for when you don't know wtf to do.
Instead of furiously grepping through man pages, simply use do
(or ddo
if on bash
/zsh
), and have GPT-3 do all the magic for you.
Check out the blog post here.
Demo
Click to play:
Installation
We recommend using pipx
:
$ pipx install gpt-do
$ which do
~/.local/bin/do
However you can also use brew
:
$ brew install yasyf/do/do
$ which do
/opt/homebrew/bin/do
Or pip
:
$ pip install gpt-do
$ which do
~/.asdf/installs/python/3.11.0/bin/do
Usage
n.b. If you're on bash
or zsh
, do
is a reserved keyword, so you'll have to use the alias ddo
.
n.b. The default model used is GPT-3. Please ensure you have sufficient credits in your OpenAI account to use it.
$ export OPENAI_API_KEY=xxx # stick this in your bash_profile
$ do amend the message of my last commit to "It works!"
This command will amend the message of the last commit to 'It works!'.
git commit --amend -m 'It works!'
Do you want to continue? [y/N]: y
[main 3e6a2f6] It works!!
Date: Thu Dec 22 01:15:40 2022 -0800
5 files changed, 1088 insertions(+)
create mode 100644 .gitignore
create mode 100644 .gitmodules
create mode 100644 README.md
create mode 100644 poetry.lock
create mode 100644 pyproject.toml
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gpt_do-0.1.16.tar.gz
(14.2 kB
view details)
Built Distribution
gpt_do-0.1.16-py3-none-any.whl
(17.2 kB
view details)
File details
Details for the file gpt_do-0.1.16.tar.gz
.
File metadata
- Download URL: gpt_do-0.1.16.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.9.16 Darwin/21.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e8c6b563fdcff67b048ae9a233500fcff870c9d547df86c9afc1966cda2f751 |
|
MD5 | fe99c344ac8a641d773b405b9db07bb1 |
|
BLAKE2b-256 | f7db4ad300d9d405017d7eab313ac18a563d52a84dd59d9c075e63d4cee8eff0 |
File details
Details for the file gpt_do-0.1.16-py3-none-any.whl
.
File metadata
- Download URL: gpt_do-0.1.16-py3-none-any.whl
- Upload date:
- Size: 17.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.9.16 Darwin/21.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 817f4100663a525a56561265c6ed44207d073141d41c9bfdcffd46a981dddc0f |
|
MD5 | 44b0b6503c4775eaf31536834488d3d3 |
|
BLAKE2b-256 | 020585efa1ba4e1ccb1d047d2d196e969441c28b81620237e03d65474909bf87 |