Files
tldr/pages/common/sgpt.md
Ahmed Sufyan fd267f0702 sgpt: add page (#10095)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-04-22 13:55:42 +02:00

29 lines
739 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# sgpt
> Command-line productivity tool powered by OpenAI's GPT models.
> More information: <https://github.com/TheR1D/shell_gpt#readme>.
- Use it as a search engine, asking for the mass of the sun:
`sgpt "{{mass of the sun}}"`
- Execute Shell commands, and apply `chmod 444` to all files in the current directory:
`sgpt --shell "{{make all files in current directory read only}}"`
- Generate code, solving classic fizz buzz problem:
`sgpt --code "{{solve fizz buzz problem using Python}}"`
- Start a chat session with a unique session name:
`sgpt --chat {{session_name}} "{{please remember my favorite number: 4}}"`
- Start a `REPL` (Readevalprint loop) session:
`sgpt --repl {{command}}`
- Display help:
`sgpt --help`