A fast `cd` command that learns your habits ↦
zoxide
keeps track of your most frequently used directories and uses a ranking algorithm to navigate to the best match. It was inspired by z and z.lua, but it’s written in Rust and out-performs both:
On my system, compiled with the
x86_64-unknown-linux-musl
target,hyperfine
reports thatzoxide
runs 10-20x faster thanz.lua
, which, in turn, runs 3x faster thanz
. This is pretty significant, since this command runs once at every shell prompt, and any slowdown there will result in an increased loading time for every prompt.
Discussion
Sign in or Join to comment or subscribe
Burak Targaç
Istanbul
Born in Istanbul, lived in Fethiye for a long time where is located at south coasts of Turkey. Currently working as a Frontend dev, prefers JS where applicable.
2020-03-11T14:07:52Z ago
I use autojump on my mac, wondering if this is way faster than it? and should I switch to this one which attracts me because of Rust
Jerod Santo
Bennington, Nebraska
Jerod co-hosts The Changelog, crashes JS Party & takes out the trash (his old code) once in awhile.
2020-03-11T18:02:31Z ago
My guess is since
autojump
is in Python it would require more boot up time thanzoxide
, but you’d have to run the benchmarks on both to be sure.