Skip to content

Commit fd267f0

Browse files
sgpt: add page (#10095)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
1 parent bfa1571 commit fd267f0

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

pages/common/sgpt.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# sgpt
2+
3+
> Command-line productivity tool powered by OpenAI's GPT models.
4+
> More information: <https://github.com/TheR1D/shell_gpt#readme>.
5+
6+
- Use it as a search engine, asking for the mass of the sun:
7+
8+
`sgpt "{{mass of the sun}}"`
9+
10+
- Execute Shell commands, and apply `chmod 444` to all files in the current directory:
11+
12+
`sgpt --shell "{{make all files in current directory read only}}"`
13+
14+
- Generate code, solving classic fizz buzz problem:
15+
16+
`sgpt --code "{{solve fizz buzz problem using Python}}"`
17+
18+
- Start a chat session with a unique session name:
19+
20+
`sgpt --chat {{session_name}} "{{please remember my favorite number: 4}}"`
21+
22+
- Start a `REPL` (Read–eval–print loop) session:
23+
24+
`sgpt --repl {{command}}`
25+
26+
- Display help:
27+
28+
`sgpt --help`

0 commit comments

Comments
 (0)