GitXplorerGitXplorer
L

zsh-ask

public
71 stars
13 forks
1 issues

Commits

List of commits on branch master.
Unverified
8866705b64b780e32e4c04631c34fa79f765269d

brings back -r options as raw output

LLicheam committed 6 months ago
Unverified
dfc56388a3ccfc1ed17d01368dbbf4b8a551373f

add assistant, fix jq: error #1.

LLicheam committed 7 months ago
Verified
ffe167a354ca304ba9931fa058d06483ba81411d

Update VERSION to 0.0.3

LLicheam committed 7 months ago
Verified
544c92dff9886f8066a863bad40e5fa39cc22ca2

fix typo

LLicheam committed 7 months ago
Verified
f85cf5cbecb6846bb74c25efd8cc6cf0627eaed4

Merge pull request #4 from dgnorton/add-raw-output-option

LLicheam committed a year ago
Verified
1037a7ce3ffd1bddcc216002fd92adcc2d2869f6

add help info to -r option

LLicheam committed a year ago

README

The README file for this repository.

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 or run source zsh-ask.zsh for a quick start.

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 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!

License

This project is licensed under MIT license. For the full text of the license, see the LICENSE file.