- OpenAI key in an env var,
OPENAI_API_KEY
- Please see their docs on getting this key: https://help.openai.com/en/articles/4936850-where-do-i-find-my-secret-api-key
- Depends on
jq
- Reads history from
~/.zsh_history
- Clone this directory, go to it, and run
pwd | pbcopy
- Open your
~/.zshrc
or wherever you set yourPATH
. - Add the directory to the path:
export PATH="/path/to/directory/undo:$PATH"
- Save and exit, then
exec zsh
to update your path.
- Do not send passwords, tokens, etc; we don't yet have any heuristics for warning about those
- Only tested on macOS with Zsh