Skip to main content

Find and run shell commands using natural language, powered by your shell history

Project description

shix

Find and run shell commands using natural language — powered by your own shell history.

shix searches your shell history to suggest relevant commands based on what you describe. No cloud, no API keys, just your local history.

Install

pip install shix

Usage

# Describe what you want to do
shix ask "docker compose restart"
shix ask "git push"
shix ask "activate virtual environment"

# Show more results
shix ask "git" --top 15

An interactive TUI opens where you can:

  • Arrow keys to navigate between suggestions
  • Enter or click to copy a command to clipboard
  • Mouse hover to highlight a suggestion
  • Scroll through many results
  • Esc or q to quit

Options

Flag Short Description
--top N -t Number of suggestions (default: 5)
--history N -n Limit history lines (0 = all, default: 0)
--version -v Show version

How it works

  1. Reads your shell history (~/.zsh_history, ~/.bash_history, or PowerShell history on Windows)
  2. Matches your query against history using fuzzy search
  3. Displays results in an interactive TUI for quick selection

Supported shells

  • zsh (macOS/Linux)
  • bash (macOS/Linux)
  • PowerShell (Windows)

License

MIT

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

shix-0.1.13.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

shix-0.1.13-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file shix-0.1.13.tar.gz.

File metadata

  • Download URL: shix-0.1.13.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for shix-0.1.13.tar.gz
Algorithm Hash digest
SHA256 ffd58863acfde44f64d43f90067c8d6220dec0e507e1fbb8a58823fe2c317c26
MD5 43e4138555bdb0099bc4487ba080fb47
BLAKE2b-256 f120d15ab589b934c8daf24d0eb25483d1c865797e05d98527bfad7a8424de8a

See more details on using hashes here.

File details

Details for the file shix-0.1.13-py3-none-any.whl.

File metadata

  • Download URL: shix-0.1.13-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for shix-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 43a6a9cc33f71e47af98008151a29734e95c12d454c951dc59a3f9de132680bd
MD5 6e07f8e577e7b59f5d050182e09aa9dd
BLAKE2b-256 228602e0effdc2f2eae6392dc70698136af05a737b9d29d7c8417c4f854a6e74

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