Skip to main content

Natural langauge shell commands.

Project description

shllm

Generate shell commands using natural langauge.

Installation

echo "export SHLLM_OPENAI_KEY={{OpenAI API Key}}" >> ~/.zshrc
pip install uv
uv pip install shllm

Alternatively:

echo "export SHLLM_OPENAI_KEY={{OpenAI API Key}}" >> ~/.zshrc
pipx install shllm

Usage

shllm {{what you want to do}}

Example

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}'
What would you like to do? [c]opy to clipboard, [r]un the command, [q]uit: c
Command has been copied to the clipboard.

Features

  • Cross-platform clipboard support: Works in various environments including SSH sessions
  • Multiple clipboard backends: Automatically tries different clipboard mechanisms based on your environment:
    • Desktop environments: pyperclip
    • macOS: pbcopy
    • Linux X11: xclip, xsel
    • Linux Wayland: wl-copy
    • Android (Termux): termux-clipboard-set
    • Windows: clip
  • Run directly: Execute commands directly without copying
  • Non-interactive mode: Automatically detects non-interactive environments (like CI pipelines) and skips prompts

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.7.tar.gz (5.2 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.7-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: shllm-0.0.7.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for shllm-0.0.7.tar.gz
Algorithm Hash digest
SHA256 3a5747fbea750dec4b38dec1babf1a6a3bc655c5faac7a2acd731e8147f3a889
MD5 748ad93903bc8fe2f3d013b39eb0f9de
BLAKE2b-256 970295ab6060fb85a90a28dacd0d9f3109f637e2aa9c52daac6e2a9c9a4413e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shllm-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for shllm-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 8cb51b78107f61383d5ad4b313539ea1e09319f7a99532b07862e12b6f3dc2c6
MD5 d05ea29b9764ef84bbe28da6adda7461
BLAKE2b-256 a06210856ba37e8d0af281aa8d26656fa5fed20973faf1e602ea8658746ea30f

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