Skip to main content

Predict your next shell command based on history — like shell autocomplete, but MORE stupid

Project description

Soon

Publish to AUR Publish to crates.io Publish to PyPI

🤖 Predict your next shell command based on history — like shell autocomplete, but MORE stupid

  • 🐚 Shell-aware (supports Bash, Zsh, Fish)
  • 📊 Shows your most used commands
  • 🌍 i18n support (EN/中文) (WIP)
  • 💡 Designed for clarity — not an autocomplete tool, but a prediction assistant.

Install

  1. Archlinux
paru -Sy soon
  1. Cargo
cargo install soon
  1. Python
pip install soon-bin

Usage

»»»» 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

Main Commands

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

Options

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

Examples

Predict your next command (default ngram=3)

soon now

Show your most used commands

soon stats

Show cached main commands (default ngram=3)

soon show-cache

Show cached main commands with custom cache size (e.g., 10)

soon cache 10
soon show-cache --ngram 10

Set shell type explicitly (if auto-detect fails)

soon now --shell zsh

Enable debug output

soon now --debug

How cache works

  • 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.

MIT © 2025-PRESENT 简律纯. FOSSA Status

FOSSA Status

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

soon_bin-0.1.6.tar.gz (15.5 kB view details)

Uploaded Source

Built Distributions

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

soon_bin-0.1.6-py3-none-win_amd64.whl (343.7 kB view details)

Uploaded Python 3Windows x86-64

soon_bin-0.1.6-py3-none-win32.whl (322.1 kB view details)

Uploaded Python 3Windows x86

soon_bin-0.1.6-py3-none-musllinux_1_2_x86_64.whl (550.0 kB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

soon_bin-0.1.6-py3-none-musllinux_1_2_i686.whl (564.3 kB view details)

Uploaded Python 3musllinux: musl 1.2+ i686

soon_bin-0.1.6-py3-none-musllinux_1_2_armv7l.whl (523.7 kB view details)

Uploaded Python 3musllinux: musl 1.2+ ARMv7l

soon_bin-0.1.6-py3-none-musllinux_1_2_aarch64.whl (533.0 kB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

soon_bin-0.1.6-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (495.3 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

soon_bin-0.1.6-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl (541.3 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ s390x

soon_bin-0.1.6-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (633.2 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ ppc64le

soon_bin-0.1.6-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl (534.4 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ i686

soon_bin-0.1.6-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (488.2 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARMv7l

soon_bin-0.1.6-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (483.9 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

soon_bin-0.1.6-py3-none-macosx_11_0_arm64.whl (452.9 kB view details)

Uploaded Python 3macOS 11.0+ ARM64

soon_bin-0.1.6-py3-none-macosx_10_12_x86_64.whl (471.9 kB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

Details for the file soon_bin-0.1.6.tar.gz.

File metadata

  • Download URL: soon_bin-0.1.6.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.8.6

File hashes

Hashes for soon_bin-0.1.6.tar.gz
Algorithm Hash digest
SHA256 15a2ba6be22f0fb59ba41bae6bf34993a97504ec08ec4d690ceee87bdf5203e8
MD5 5bddb314f931365feca3e43b733990ba
BLAKE2b-256 7eb30d0a1acbb07dada6dd7d2b746008c6a0d5d84e1c0f1869adc42b869fcb03

See more details on using hashes here.

File details

Details for the file soon_bin-0.1.6-py3-none-win_amd64.whl.

File metadata

  • Download URL: soon_bin-0.1.6-py3-none-win_amd64.whl
  • Upload date:
  • Size: 343.7 kB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.8.6

File hashes

Hashes for soon_bin-0.1.6-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 2f980870c443c43941796337e03ee141dafc23ab022c291c73d163aee73b5d6a
MD5 1481835e75b38fd106d66592ccb0b709
BLAKE2b-256 39ce32dec5747c130b204308c066039540dfc22fd35020b9af78632ad47791e2

See more details on using hashes here.

File details

Details for the file soon_bin-0.1.6-py3-none-win32.whl.

File metadata

  • Download URL: soon_bin-0.1.6-py3-none-win32.whl
  • Upload date:
  • Size: 322.1 kB
  • Tags: Python 3, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.8.6

File hashes

Hashes for soon_bin-0.1.6-py3-none-win32.whl
Algorithm Hash digest
SHA256 2aabec1bbbe5ec6b22e8a3ea86f759f2723fcf08963b97a69011bfba82cc273f
MD5 6de78d385ac4f4c6877a2e82c5de17f6
BLAKE2b-256 501cff83810a121d73924bb4ff627f55e2904c1887dd91dfa70d3fce078d981b

See more details on using hashes here.

File details

Details for the file soon_bin-0.1.6-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for soon_bin-0.1.6-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 7fc3990e4750da27e602702d3cdd5602989073a87e33c8fcd172d3832b09b2b7
MD5 8819cce5ada98d6d60ef004668a5b2a8
BLAKE2b-256 a10fa8303d7d20715febd9f9750521835b10036462982f040a79dd56b31798f1

See more details on using hashes here.

File details

Details for the file soon_bin-0.1.6-py3-none-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for soon_bin-0.1.6-py3-none-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 c57e6f75875ec9b1b8e31ab2950a54512cbe17e562bb4e739397c6a318f6a878
MD5 f62fea6d4b07bbc8380f126b2d551d61
BLAKE2b-256 b04145f3cfcfb10df78229b8b827fc242ff5d399e1fc21ec70c504ed2e7f4f92

See more details on using hashes here.

File details

Details for the file soon_bin-0.1.6-py3-none-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for soon_bin-0.1.6-py3-none-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 440a35a2c4eb171921986c1d07a4b1291f4924c74afa024999b3836f1196693b
MD5 0fb238dd7f0e4c34afc122c1076aae2e
BLAKE2b-256 c0e23ac2aa0624e3ea6e3021154c5e55691a6053ffbba46b905ae505f86d80a3

See more details on using hashes here.

File details

Details for the file soon_bin-0.1.6-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for soon_bin-0.1.6-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 d218c96079e9cfa4420b20df0c548ab9d605a0b31fb6e26523439eef6dabd2c6
MD5 20b08e8b2318ec1ee86381390b196735
BLAKE2b-256 c5b15275f0107bcb5475b9dd96b492c6021cbebe5f14b7f8cbe0a459c87383ef

See more details on using hashes here.

File details

Details for the file soon_bin-0.1.6-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for soon_bin-0.1.6-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 156a97c31fc0feca09d3efc05d0caa2e435aefb57454958a35983956e98f871b
MD5 e209065b032d883cde76399f532f8c45
BLAKE2b-256 3ca79a68c6daa412b5820e3e07d3f89ceb5caa4fe5a8f17694a42de5bc0c9ce9

See more details on using hashes here.

File details

Details for the file soon_bin-0.1.6-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for soon_bin-0.1.6-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 3a4ba694d2515c689cbd9a523c78f3f47565e0feb99ba7dcd982c0b90ec9e923
MD5 8d08300c465bd420da6c7f166227713d
BLAKE2b-256 b2dc7a35c71a3a5f001a1b8f0d2e0d1c094752f7ac3b16f0678ea144c71acf49

See more details on using hashes here.

File details

Details for the file soon_bin-0.1.6-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for soon_bin-0.1.6-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 4d4342d426665abbc89de627f37a2641b1ec3461a32aeb2ebadeaf9433aed55f
MD5 f98e449c73ea5c566dc0ceb8fb93d1e8
BLAKE2b-256 8a222da40f60d23bba30eb3c632cf93a6bc835eea237c825ed5a8cb21bfeb43e

See more details on using hashes here.

File details

Details for the file soon_bin-0.1.6-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for soon_bin-0.1.6-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 563706cff77ce4f92f6ff4b9c14b3cc202d8e8dd914847a1808bee309098b3b5
MD5 8ff87cf350959d6071555afe6398c692
BLAKE2b-256 b74fe63565485d55640aafcbf75e12464bab474c8875f919876c9aea54c4ac2d

See more details on using hashes here.

File details

Details for the file soon_bin-0.1.6-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for soon_bin-0.1.6-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 7e32101aca5bad187b08bfca2527b9f5086d77049b947b4ec341bdb5a14b5e5c
MD5 426454c68854e17ac477de1f1fc397c7
BLAKE2b-256 5ddc06bcf5468fe994946772ab30be2608576c4d41b2cadc550d58b2966c2089

See more details on using hashes here.

File details

Details for the file soon_bin-0.1.6-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for soon_bin-0.1.6-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 01a2ec3bec1dfe552650d02cc836bea6f4e857f2dea24fbb88220ebb353a07c3
MD5 7248d5b8db173713543058ce72b40acd
BLAKE2b-256 21a20fc4dc422855801ba769e888db348fc213c8d4e56a4e7a4b5cf935eb0de7

See more details on using hashes here.

File details

Details for the file soon_bin-0.1.6-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for soon_bin-0.1.6-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8c5c3c42e5943fa7c2e17a2ee335ae4a1793e7979f3bc294e7fd0b6b070efb33
MD5 74aebd542118a6eb354138fbc16b9275
BLAKE2b-256 88139ec4162900e14ede0351ab4bea565a3ead8fd6f36928a443b51d38ce1980

See more details on using hashes here.

File details

Details for the file soon_bin-0.1.6-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for soon_bin-0.1.6-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 33e332379ebcb5f748639aefdbb2234b270c42f336fd481caaf0e7ba2c85d136
MD5 552360894ce4d99d1cb031b3b8e342ab
BLAKE2b-256 259363e9e6b3739b43481a8a487cf3dadf8b967c84a6a5dec9917a172272c022

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