have openai help you use the terminal
slipping in some ai everywhere
- tags
- openai
- gem
- cli
Contents
I was reading through swyx's new mac setup and stumbled upon this please function written in bash. Lets give it a go.
| |
| |
I require gum but it's not installed or in PATH; from https://github.com/charmbracelet/gum please.bash: line 38: s/'/'\\''/g: No such file or directory please.bash: line 63: gum: command not found please.bash: line 73: gum: command not found Aborted.
gum
Lets install gum:
| |
which triggered me to run
| |
How about a demo?
| |
And then run it
Back to please.bash
Inside of _generate_curl_api_request_for_please make sure you set OPENAI_API_KEY, like
| |
Then you can source please.bash
and do
| |
Which looks like

That's a bit wordy but you get the idea.
Previously
Next