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: 10) |
--history N |
-n |
Limit history lines (0 = all, default: 0) |
--version |
-v |
Show version |
How it works
- Reads your shell history (
~/.zsh_history,~/.bash_history, or PowerShell history on Windows) - Matches your query against history using fuzzy search
- Displays results in an interactive TUI for quick selection
Supported shells
- zsh (macOS/Linux)
- bash (macOS/Linux)
- PowerShell (Windows)
License
MIT
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file shix-0.1.16.tar.gz.
File metadata
- Download URL: shix-0.1.16.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7632cb6ed9db025eaf3ffeeb06f31c0a473a937a2e6593f1ee1119602174ee5d
|
|
| MD5 |
4685ab90b60ef31d530adb7fd2fc1fc8
|
|
| BLAKE2b-256 |
0afb6b658d83ebdb7e02873adbafb659769226452a339d28853a451550d78136
|
File details
Details for the file shix-0.1.16-py3-none-any.whl.
File metadata
- Download URL: shix-0.1.16-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9047dc91eb0fe4dc635ae8a5f7a70e2d61844aec8c73732027aff02b2b5ff9be
|
|
| MD5 |
e033cf96977284f0bff0c19e40cb5fec
|
|
| BLAKE2b-256 |
2575d1a71abcba82da30363e5725c266573e982276c7df3f26b2bc6b17b4b477
|