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
Use -c
for dialogue format communication.
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.
Have fun!
This project is licensed under MIT license. For the full text of the license, see the LICENSE file.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4