frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Zoxide: A Better CD Command

https://github.com/ajeetdsouza/zoxide
69•gasull•2h ago

Comments

Zizizizz•1h ago
One of those fundamental work-changing tools. I use it dozens of times a day. It's fantastic
peauc•1h ago
I couldn’t live without it now. Very simple yet effective tool
tcoff91•1h ago
It’s just so good.

fzf and zoxide are probably my two most game changing cli tools. They make the terminal feel so good.

tcoff91•1h ago
I actually made a git worktree aware function called w that wraps zoxide and will basically switch to the main worktree, execute z, and then switch back to the worktree you came from. That way you don’t run into zoxide switching from one worktree to another annoyingly, and new worktrees immediately inherit your zoxide scores. You purge all other worktrees from the zoxide database and use w instead of z inside git repos.

I haven’t used it in a while though because I switched from git to jj.

0x008•53m ago
care to share?
mythz•1h ago
zoxide alongside fzf, eza, bat and starship were my killer CLI productivity tools I discovered after ditching Windows for Fedora. I have it aliased to `cd` so I don't really notice when I'm using it until moving to a Terminal that doesn't have it.
mubu•53m ago
How is this any different from z?
dag11•51m ago
This is z, no?
sevg•30m ago
There is a different project called z:

https://github.com/rupa/z

I’d never heard of it but it was the first search result for “z github”.

stranges•50m ago
The main difference is speed (Rust vs shell script)
UK-AL•35m ago
Zoxide normally aliases to z. Is this not z?
Latty•51m ago
I tried zoxide for a while but I really disliked how it made things fuzzy, and most of the use cases for it I found were 90% solved by using ZSH's history search which I use routinely anyway.

It gives you this potentially constantly shifting set of shortcuts, essentially, and the problem is that means I have to constantly check I did get the result I wanted, and that I haven't accidentally gone to the wrong place. I found that more annoying to me than just using tab completions or history, which are much more predictable.

I can see how someone who has different workflows or environments might find it great though.

mrcarrot•35m ago
Yeah, I've been trying it recently and I'm not entirely convinced I want to keep using it.

My biggest annoyance at the moment (and this may be me missing something), is that I have two directories: "thing" and "thing-api". I'm doing work in "thing" much more often than in the "thing-api", but whenever I run "z thing", it takes me to "thing-api" first, and I have to "z thing" again to get to where I wanted to go. It ends up being more effort than if I'd just tab-completed or history searched a plain cd command.

paholg•9m ago
zoxide stores a rank for each directory based on how often you visit it, but you can manually adjust the scores.

Run `zoxide query -ls thing` to see the scores, and `zoxide add thing -s AMOUNT` to increase the score.

bjackman•47m ago
Does anyone know if zoxide has any fancy logic to ignore strings that appear in common prefixes?

For example I have a big ~/src dir where I keep all my code checkouts. If I type 'z src' intending to go to ~/src/foo/bar/src, will it be clever enough to realise that I am referring to the second instance of the string 'src'?

I currently use a Fish port of the original 'z'. It does ignore the common prefix of _all_ matches (so if I only ever used it within my ~/src tree, the problem would disappear) but after that binary exclusion it works exclusively on frecency.

ShinTakuya•33m ago
As far as I'm aware it keeps a history of the frequency you visit each directory so yes it will select the one you've visited more often (assuming you don't always start at the base one and work your way down).
yerlantemir•44m ago
super happy to be a super of such an amazing tool, thank you!
CopyOnWrite•44m ago
Does anyone know, how this compares to [autojump](https://github.com/wting/autojump)?

Could not imagine using regular cd for navigating file systems anymore.

kritr•32m ago
One useful thing I discovered recently about zoxide is that it has a basedir flag, so in theory you scan scope your query to the directory you’re in or based off some git root.

something like

alias zg=‘zoxide —basedir $(git rev-parse --show-toplevel)’

https://github.com/ajeetdsouza/zoxide/pull/1027

hannesfur•15m ago
Wow! That's really useful!
stared•24m ago
For me, this simple tools is the single best command line changer! Instead of a lot of commands to traverse the folder tree, I jump where and when I want.

Other nice tools I use: Fish for shell (https://fishshell.com/), Starship for prompt (https://starship.rs/), bat "a cat with wings" for file preview (https://github.com/sharkdp/bat).

hannesfur•17m ago
I also like eza (https://github.com/eza-community/eza) which is a modern ls. Fish is the biggest game changer though.
nkydr0i0•7m ago
True! lots of people sleeping on Fish. Probably because it's not POSIX compliant -- which is something I was hesitant about at first, too. My favorite features are: built-in vim mode, alt+s instead of sudo !!, backwards search with arrow-up, overall good default settings
smartmic•23m ago
Is it just me, or is it actually a new trend that the first thing on the README page is an advertisement? Could this perhaps even be related to the AI glut?

In any case, aberrations such as the excessive use of emojis and exaggeration are becoming increasingly common, which is yet another reason for me to distance myself from GitHub. For me, a README that more closely follows the conventions and minimalism of a classic man page is a sign of quality, and it could perhaps even be rendered in plain text to achieve a high signal-to-noise ratio.

hannesfur•18m ago
It definitely got more widespread, but I am not sure that it's related to AI. If it's a way for open source maintainers of awesome tools I use to fund their development, I am totally fine with that.
mkw2000•19m ago
I wouldnt say I cant live without it , but it saves me a few seconds here and there and its a great tool!
brontosaurusrex•11m ago
I've been using autojump, called with 'j'. Any pros of zoxide over that? https://packages.debian.org/sid/autojump

Nine Things I Learned in Ninety Years

http://edwardpackard.com/wp-content/uploads/2025/09/Nine-Things-I-Learned-in-Ninety-Years.pdf
206•coderintherye•4h ago•50 comments

Altoids by the Fistful

https://www.scottsmitelli.com/articles/altoids-by-the-fistful/
27•todsacerdoti•1h ago•6 comments

Zoxide: A Better CD Command

https://github.com/ajeetdsouza/zoxide
69•gasull•2h ago•27 comments

Delete FROM users WHERE location = 'Iran';

https://gist.github.com/avestura/ce2aa6e55dad783b1aba946161d5fef4
295•avestura•2h ago•168 comments

Qwen3-Omni: Native Omni AI model for text, image and video

https://github.com/QwenLM/Qwen3-Omni
442•meetpateltech•13h ago•108 comments

Fall Foliage Map 2025

https://www.explorefall.com/fall-foliage-map
158•rappatic•7h ago•16 comments

Telli (YC F24) is hiring ambitious engineers [Berlin, on-site]

https://hi.telli.com/join-us
1•sebselassie•39m ago

I built a dual RTX 3090 rig for local AI in 2025 (and lessons learned)

https://www.llamabuilds.ai/build/portable-25l-nvlinked-dual-3090-llm-rig
32•tensorlibb•3d ago•22 comments

Gamebooks and graph theory (2019)

https://notes.atomutek.org/gamebooks-and-graph-theory.html
19•guardienaveugle•3h ago•0 comments

Paper2Agent: Stanford Reimagining Research Papers as Interactive AI Agents

https://arxiv.org/abs/2509.06917
101•Gaishan•9h ago•23 comments

Based C++

https://github.com/SheafificationOfG/based-cpp
51•phamtrongthang•3d ago•11 comments

Cap'n Web: a new RPC system for browsers and web servers

https://blog.cloudflare.com/capnweb-javascript-rpc-library/
502•jgrahamc•18h ago•225 comments

I'm spoiled by Apple Silicon but still love Framework

https://simonhartcher.com/posts/2025-09-22-why-im-spoiled-by-apple-silicon-but-still-love-framework/
292•deevus•18h ago•383 comments

X server implementation for SIXEL-featured terminals (2010-2014)

https://github.com/saitoha/xserver-SIXEL
45•jesprenj•6h ago•8 comments

The Beginner's Textbook for Fully Homomorphic Encryption

https://arxiv.org/abs/2503.05136
202•Qision•1d ago•34 comments

Why haven't local-first apps become popular?

https://marcobambini.substack.com/p/why-local-first-apps-havent-become
386•marcobambini•18h ago•373 comments

Is a movie prop the ultimate laptop bag?

https://blog.jgc.org/2025/09/is-movie-prop-ultimate-laptop-bag.html
202•jgrahamc•19h ago•214 comments

Notion 3.0

https://www.notion.com/blog/introducing-notion-3-0
20•surprisetalk•3d ago•15 comments

Rungis: The Market and the City – A day at Europe's largest fresh food market

https://www.vittlesmagazine.com/p/rungis-the-market-and-the-city
19•speckx•3d ago•5 comments

Testing is better than data structures and algorithms

https://nedbatchelder.com/blog/202509/testing_is_better_than_dsa.html
136•rsyring•15h ago•124 comments

What happens when coding agents stop feeling like dialup?

https://martinalderson.com/posts/what-happens-when-coding-agents-stop-feeling-like-dialup/
120•martinald•1d ago•110 comments

The common sense unit of work

https://blog.nilenso.com/blog/2025/09/17/the-common-sense-unit-of-work/
18•todsacerdoti•4d ago•2 comments

Fine-grained HTTP filtering for Claude Code

https://ammar.io/blog/httpjail
69•ammario•11h ago•10 comments

After 50 years, The Magic Circle finally inducts Penn and Teller

https://www.nytimes.com/2025/09/19/arts/penn-teller-magic-circle.html
178•wbl•3d ago•62 comments

OpenAI and Nvidia announce partnership to deploy 10GW of Nvidia systems

https://openai.com/index/openai-nvidia-systems-partnership/
431•meetpateltech•15h ago•548 comments

Germicidal UV could make airborne diseases as rare as those carried by water

https://www.worksinprogress.news/p/how-to-clean-the-air
50•venkii•9h ago•15 comments

Show HN: Python Audio Transcription: Convert Speech to Text Locally

https://www.pavlinbg.com/posts/python-speech-to-text-guide
76•Pavlinbg•13h ago•23 comments

Easy Forth (2015)

https://skilldrick.github.io/easyforth/
191•pkilgore•19h ago•105 comments

PlanetScale for Postgres is now GA

https://planetscale.com/blog/planetscale-for-postgres-is-generally-available
276•munns•16h ago•172 comments

A board member's perspective of the RubyGems controversy

https://apiguy.substack.com/p/a-board-members-perspective-of-the
98•Qwuke•1d ago•116 comments