brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: zoxide query -ls shows which folders your shell thinks you use most

Shell
~/tips/tip-zoxide-query-list-score

zoxide query -ls project

List the folders zoxide remembers, with scores, to understand its jumps.

zoxide learns the folders you visit, so a few letters take you back. When it picks the wrong folder, I want to see why.

The query command can show what it knows. -l lists all matches and -s prints the score next to each:

zoxide query -ls project

Your shell integration comes from zoxide init followed by the shell name, for example zoxide init zsh. With the integration, z foo jumps to the best match and zi foo lets you choose, using fzf.

A caveat: the integration only learns folders you actually visit with it. Remove a stale entry with zoxide remove followed by the path, and use -i on query when you want to pick by hand.

Further reading: zoxide README

More Shell tips zmv -n '(*).log' '$1.txt' f=$(mktemp --suffix=.json) shopt globskipdots echo $EPOCHSECONDS docker compose logs --tail 50 web # now at the top of a clean screen All Shell tips (78) All topics

Link