mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-14 03:59:33 +00:00
Update cheatsheets
This commit is contained in:
33
sgpt
Normal file
33
sgpt
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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` (Read–eval–print loop) session:
|
||||
|
||||
`sgpt --repl {{command}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`sgpt --help`
|
||||
Reference in New Issue
Block a user