A lightweight Zsh plugin serves as a ChatGPT API frontend, enabling you to interact with ChatGPT directly from the Zsh
shell using only cURL
and jq
.
See INSTALL.md or run source zsh-ask.zsh
for a quick start.
Make sure you have cURL
and jq
installed.
If you would like to have markdown rendering with option -m
, glow
is required (Recommend).
Fill your OpenAI api key as ZSH_ASK_API_KEY
(see INSTALL.md for detail information), then just run
ask who are you
Use -c
for dialogue format communication.
ask -c chat with me
Use -m
for markdown rendering (glow
required)
ask -m how to code quick sort in python
Use -s
for streaming display (doesn't work with -m
yet)
ask -s write a poem for me
Use -i
to inherits history from last chat (which is recorded in ZSH_ASK_HISTORY).
ask -i tell me more about it
Use -h
for more information.
ask -h
Have fun!
This project is licensed under MIT license. For the full text of the license, see the LICENSE file.