A fuzzy cd alternative written in Rust
- Rust 98.2%
- Shell 1.8%
| .forgejo/workflows | ci: restore .forgejo/workflows/release.yml for Codeberg Actions release | |
| src | feat(cli): styled output — colored paths, success/error indicators, dividers | |
| tests | feat: P2 — Nushell/Elvish shell integrations + hop book edit | |
| .gitignore | ignore SPEC.md | |
| Cargo.lock | feat(cli): styled output — colored paths, success/error indicators, dividers | |
| Cargo.toml | chore: bump version to 1.3.3 | |
| install.sh | fix(install): resolve asset download URL via Codeberg API | |
| LICENSE | v0.6.0: completions, init --verify/--shell, release workflow, rust-version, LICENSE | |
| README.md | docs: lean README as wiki landing page | |
hop
Fuzzy directory jumper for your terminal.
Type a fragment, hit enter, go anywhere. hop learns your habits and gets smarter over time.
~ $ h dl
~/Downloads
~/Downloads $ h proj
~/code/work/project
No more cd ../../../long/path. No more memorizing aliases.
Install
curl -fsSL https://codeberg.org/dioxus/hop/raw/branch/main/install.sh | bash
Then add shell integration:
| Shell | Add this to your config file |
|---|---|
| Bash | eval "$(hop init bash)" |
| Zsh | eval "$(hop init zsh)" |
| Fish | hop init fish | source |
| Nushell | hop init nushell | save ~/.local/bin/hop.nu then use ~/.local/bin/hop.nu in config.nu |
| Elvish | hop init elvish > ~/.config/hop/hop.elv then use ~/.config/hop/hop.elv in rc.elv |
Restart your shell. That's it — h is now a function that jumps to directories.
Quick usage
h proj → jump to best match from history
hop /tmp → literal path works too
hop → open the interactive picker
hop book w ~/code/work → bookmark a directory
h w → jump to bookmark
Documentation
All the details are in the wiki:
- Installation — one-liner, from source, self-update, uninstall
- Shell Setup — bash, zsh, fish, nushell, elvish
- Usage — all commands with examples
- Configuration — config.toml reference
- Importing — migrate from zsh/fasd/autojump/zoxide
- Troubleshooting — common issues and fixes
- Changelog — release notes
Verify
hop doctor
Data
- macOS:
~/Library/Application Support/hop/hop.db - Linux:
~/.local/share/hop/hop.db
License
MIT