/zsh-ask

A lightweight Zsh plugin serves as a ChatGPT API frontend, enabling you to interact with ChatGPT directly from the Zsh.

Primary LanguageShellMIT LicenseMIT

zsh-ask

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.

Installation

See INSTALL.md.

Preliminaries

Make sure you have cURL and jq installed.

If you would like to have markdown rendering with option -m, glow is required (Recommend).

Usage

Fill your OpenAI api key as ZSH_ASK_API_KEY (See INSTALL.md for detail information), then just run

ask '<what you about to ask>'

Use -c for dialogue format communication.

ask -c

Use -m for markdown rendering (glow required)

ask -m

Use -h for more information.

ask -h

Have fun!