Skip to content

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

License

Notifications You must be signed in to change notification settings

Licheam/zsh-ask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages