| Crates.io | soon |
| lib.rs | soon |
| version | 0.1.6 |
| created_at | 2025-05-24 19:02:49.977507+00 |
| updated_at | 2025-05-29 16:10:19.916816+00 |
| description | Predict your next shell command based on history — like shell autocomplete, but MORE stupid |
| homepage | |
| repository | https://github.com/HsiangNianian/soon |
| max_upload_size | |
| id | 1687695 |
| size | 48,342 |
🤖 Predict your next shell command based on history — like shell autocomplete, but MORE stupid
paru -Sy soon
cargo install soon
pip install soon-bin
»»»» soon help 0|00:00:54
Predict your next shell command based on history
Usage: soon [OPTIONS] [COMMAND]
Commands:
now Show the most likely next command
stats Show most used commands
learn Train prediction (WIP)
which Display detected current shell
version Show version information
update Update self [WIP]
show-cache Show cached main commands
show-internal-cache Show internal cache commands
cache Cache a command to soon cache (for testing)
help Print this message or the help of the given subcommand(s)
Options:
--shell <SHELL>
--ngram <NGRAM> [default: 3]
--debug Enable debug output
-h, --help Print help
-V, --version Print version
| Command | Description |
|---|---|
now |
Show the most likely next command |
stats |
Show most used commands |
learn |
Train prediction (WIP) |
which |
Display detected current shell |
version |
Show version information |
update |
Update self (WIP) |
show-cache |
Show cached main commands |
show-internal-cache |
Show internal cache commands |
cache <NUM> |
Set cache size to <NUM> and refresh cache |
help |
Print this message or the help of subcommands |
| Option | Description |
|---|---|
--shell <SHELL> |
Specify shell type (bash, zsh, fish, etc.) |
--ngram <NGRAM> |
Set n-gram length for prediction (default: 3) |
--debug |
Enable debug output |
-h, --help |
Print help |
-V, --version |
Print version |
soon now
soon stats
soon show-cache
soon cache 10
soon show-cache --ngram 10
soon now --shell zsh
soon now --debug
The .soon_cache file always contains the latest N main commands (N = cache size).
Every time you run soon now, soon cache <NUM>, or soon show-cache, the cache is refreshed from your shell history.
The cache size is controlled by the <NUM> argument in soon cache <NUM> or by --ngram <NGRAM> option.