Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 565 Bytes

chat-gpt.md

File metadata and controls

32 lines (23 loc) · 565 Bytes

ChatGPT from terminal

One option is to use shellGPT but it requires OPENAI_KEY_API not available for free.

An open-source free option is Terminal GPT.

Useful commands (add to your .bashrc)

# tgpt -s "prompt" outputs shell commands
shell () {
  prompt="$@"
  tgpt -s "$prompt"
}

# tgpt -c "prompt" outputs code-oriented answers
coding () {
  prompt="$@"
  tgpt -c "$prompt"
}

Examples:

shell find a file in this folder
coding create a new c++ class