Generate shell command you want with power of LLM, without leaving your terminal.
Project description
ShellGPT
Generate shell command you want with power of LLM, without leaving your terminal!
Install
pip install shgpt
This will install two commands: sg
and shgpt
.
Usage
ShellGPT has three modes to use:
sg {your question}
, direct modesg
, Enter TUI mode, tailored for infer shell commandsg -r
, Enter an interactive REPL
See conf.py for configs.
TUI
There are some key bindings to use in TUI:
ctrl+j
, Infer answerctrl+r
, Run commandctrl+y
, Yank command
Requirements
- Ollama, you need to download models before try shellgpt.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
shgpt-0.2.0.tar.gz
(5.4 kB
view details)
Built Distribution
File details
Details for the file shgpt-0.2.0.tar.gz
.
File metadata
- Download URL: shgpt-0.2.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94bd8a465b0e5996c32cdffdbf673c52748a37e3c24d48b73e8bdeb6bf828b8f |
|
MD5 | 77871edd3014d13973ec19070fa0fcb7 |
|
BLAKE2b-256 | 11cda1df105352dce65fdf4e57a944570c9da0e4f8aa0817086bbae6c10873bd |
File details
Details for the file shgpt-0.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: shgpt-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 942a030f78e892a9a7808ea3e3f41e87c19a5321c46c2073f87d26c121576796 |
|
MD5 | b8a846ad0997c46ad8bc65c6a1168e0f |
|
BLAKE2b-256 | 2ca39a0e8cba7f1cdcc16c2d1bf61c3c1dcc1903f64c5898c106c24e055b2bd1 |