Skip to main content

Natural langauge shell commands.

Project description

shllm

A tool to generate shell commands from ChatGPT and quickly run them on your terminal.

Inspired by this blog post.

Installation

pip install openai pyperclip
#Update for your file location and shell config. Restart terminal.
echo 'export PATH=$PATH:/Dev/shllm' >> ~/.zshrc
echo "export OPEN_API_KEY=your_api_key_here" >> ~/.zshrc

Usage

shllm show how many gigabytes of free space I have left on my hard drive
Command to be copied to clipboard: df -h . | awk 'NR==2 {print $4}'
Do you want to copy this command to the clipboard? (y/n): y
Command has been copied to the clipboard.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shllm-0.0.1.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shllm-0.0.1-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file shllm-0.0.1.tar.gz.

File metadata

  • Download URL: shllm-0.0.1.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.6 Darwin/23.6.0

File hashes

Hashes for shllm-0.0.1.tar.gz
Algorithm Hash digest
SHA256 81055b4642bd4b89a213305683c3f3d7808513eebd89dd17551a6c075c3bb68e
MD5 c66de541a496b80e80f6a562d4963a78
BLAKE2b-256 b352771513c7f30b7a90f7525b9e3f6818bf66d28d45aabcf7944c2600d88fe5

See more details on using hashes here.

File details

Details for the file shllm-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: shllm-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.6 Darwin/23.6.0

File hashes

Hashes for shllm-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7bbf63e435b6d47fcca503f5a795c31a1372258a1da1b3432a72100db210bb4a
MD5 95305a92aef018959957445c62efd518
BLAKE2b-256 30f56b17d68ef488ffc88075ae5c92c3df49f6676f905814dcddb9955a25c43c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page