Autojump and zsh

In Bookworm

sudo apt install autojump

add this to .zshrc

# autojump installed with apt
[[ -s /usr/share/autojump/autojump.zsh ]] && source /usr/share/autojump/autojump.zsh

usage

j --help
j -s   # for stats
j rex  # to visit a previously visited dir that has rex in its name

Alternatives:
https://github.com/ajeetdsouza/zoxide (also in repos)