Download loxx
One command installs loxx for your system. It needs no sudo.
curl -fsSL https://loxx.run/install | sh
Then open a new terminal (or run exec zsh in this one) and press Ctrl Alt G, or Ctrl Option G on a Mac. The installer:
- downloads the program for your system and checks its checksum,
- puts it in
~/.local/bin/loxx, - adds one marked block to
~/.bashrcand/or~/.zshrc, which also puts~/.local/binon yourPATHif it isn't there, - loads your existing shell history once.
Prefer to get the installer from GitHub directly? This does the same:
curl -fsSL https://github.com/AniketR10/loxx/releases/latest/download/install.sh | sh
What you need
| System | Shells | Chips |
|---|---|---|
| Linux | bash 4.4+ or zsh 5.1+ | Intel or AMD (amd64), ARM (arm64) |
| macOS 12 or newer | zsh (the Mac default) | Apple chip, Intel |
Windows isn't supported. On a Mac, the bash that comes with macOS is too old for loxx.
Download a file yourself
Each file is the whole program: one file, nothing else to install.
| System | File |
|---|---|
| Linux, Intel or AMD | loxx-linux-amd64 |
| Linux, ARM64 | loxx-linux-arm64 |
| macOS, Apple chip | loxx-darwin-arm64 |
| macOS, Intel | loxx-darwin-amd64 |
| Checksums | checksums.txt |
Then install it and add the hook to your shell (Linux on Intel or AMD shown):
mkdir -p ~/.local/bin && install -m 755 loxx-linux-amd64 ~/.local/bin/loxx && ~/.local/bin/loxx setup
On a Mac, a file downloaded with a web browser is blocked until you allow it. Download it with curl -fLO instead, or run xattr -d com.apple.quarantine loxx-darwin-arm64 first.
Check a download is genuine
Compare the checksum (use shasum -a 256 -c on a Mac):
grep loxx-linux-amd64 checksums.txt | sha256sum -c
Every file also has a signed record of how GitHub built it. With the GitHub CLI:
gh attestation verify loxx-linux-amd64 --repo AniketR10/loxx
Update
Run the install command again. It replaces the program and keeps your history and settings.
Uninstall
loxx uninstall
This removes the block from your shell settings, leaving them exactly as they were, asks whether to delete your saved history, and deletes the program.
Build from source
You need Go 1.25 or newer, make and curl:
git clone https://github.com/AniketR10/loxx cd loxx make build bin/loxx setup
The first build downloads the search model and the built in command list (about 90 MB together) and checks their checksums. go install doesn't work, because neither is stored in git.