Find it by what it did
Ran docker system prune -af months ago? Search “free up disk space” and it comes up, though the two share no words.
loxx remembers every command you run in bash and zsh. Press Ctrl Alt G, type “undo my last commit”, and git reset --soft HEAD~1 lands in your prompt, ready to edit.
curl -fsSL https://loxx.run/install | sh
loxx ❯ undo my last commit
filter: all (Tab) · ↑↓ · Enter use · Esc cancel
~/code/shop $ git reset --soft HEAD~1
Why loxx
Ran docker system prune -af months ago? Search “free up disk space” and it comes up, though the two share no words.
About 29,000 examples from tldr pages, shown only for programs installed on your computer and marked suggested.
API keys, tokens and passwords become <REDACTED> before anything is saved. Start a command with a space to skip it entirely.
The language model is built into the program. No account, no server, and no network connection, ever.
Commands are saved in the background, adding about 1 to 4 ms to each one. Your prompt never waits.
Your pick lands in the prompt, ready to edit. You decide when to press Enter.
Stop scrolling through history. Describe what you did, and loxx finds it.
How it works
No sudo. The installer checks the download, then imports your existing bash and zsh history, so you can search it right away.
Every command is saved with its folder, exit code and how long it took. Secrets are removed before saving.
Press Ctrl Alt G and type what it did. Enter puts the command in your prompt. Press Tab to see only this folder, this terminal, or commands that failed.
Measured, not promised
Numbers from loxx's own tests and benchmarks; the example count is for Linux. How loxx works
Ctrl R, fzf and McFly find a command when you remember how it was written. loxx is for when you only remember what it did.
| What you get | loxx | Ctrl R | fzf | McFly |
|---|---|---|---|---|
| How it matches | Words and meaning | Exact text | Letters in order | Text, ranked by a small neural network |
Finds undo my last commitas git reset --soft HEAD~1 | ✓ | ✗ | ✗ | ✗ |
| Suggests commands you have never run | ✓ for installed programs | ✗ | ✗ | ✗ |
| Narrow to this folder, repo or terminal | ✓ and “failed” | ✗ | ✗ | Ranks this folder higher |
| Keeps passwords and keys out of saved history | ✓ replaces the secret, keeps the command | ✗ | ✗ | ✗ only if you skip the command |
| Shells | bash, zsh | bash (built in) | bash, zsh, fish | bash, zsh, fish, PowerShell |
| Works offline | ✓ | ✓ | ✓ | ✓ |
Five things you once did in a terminal, remembered the way people remember. Find each command by describing it.
Five rounds. A new set every day.
The game needs JavaScript. Here is what a round looks like:
Before a trip, you squeezed your Documents folder into a single file.
loxx ❯ zip my documents
Uses a made up history and a word list. The real loxx searches yours, with a language model built in.
Questions
Yes. loxx is free and open source under the MIT license. There is no account and no paid plan.
No. loxx never connects to the internet. The language model is built into the program, so search works the same on a plane. What loxx saves
loxx replaces passwords, API keys, tokens and private keys it recognizes with <REDACTED> before saving. For anything unusual, start the command with a space so it is never saved, or run loxx forget --last afterwards.
Linux with bash 4.4 or newer or zsh 5.1 or newer, and macOS 12 or newer with zsh. Windows is not supported. Requirements
The language model and about 29,000 example commands are built into the program, so loxx never downloads anything later and never needs the internet.
Never. Choosing a result puts it in your prompt, where you can edit it. You press Enter to run it.
Saving runs in the background after each command and adds about 1 to 4 ms. The search list opens in about 30 ms, even with 100,000 saved commands.
Commands containing your words come first. Searching by meaning always shows the closest commands, even when none is a good match, so check a result before you run it.
loxx forget --last deletes the command you just ran. loxx forget --match TEXT deletes every command containing TEXT, including from the files on disk.
Run loxx uninstall. It puts your shell settings back exactly as they were, asks whether to delete your saved history, and deletes the program.
One line, no sudo. Linux and macOS, bash and zsh.
curl -fsSL https://loxx.run/install | sh
loxx uninstall puts everything back