Ze.sh
a z.sh-derived directory jumper that uses an event clock
Details
- External ID
- 48628795
- Source
- HN
- Company
- —
- Product
- Ze.sh
- Website domain
- github.com
- Launched
- June 22, 2026
- Cohort
- —
- Upvotes
- 5
- Upvotes percentile
- 0.12568306010928962
- Tags
- —
- Fetched at
- Sept. 7, 2026, 9:26 p.m.
- Updated at
- Sept. 7, 2026, 9:26 p.m.
Description
z.sh and zoxide (and other frecency-based directory jumpers) couple score decay to wall-clock time. After any extended period of inactivity (e.g. holidays) the first directories visited on return dominate the ranking regardless of prior history, and the tool effectively has to relearn ranking from subsequent navigation.The underlying issue is that wall-clock time during shell inactivity carries no information about directory relevance. ze.sh replaces wall-clock time with an event clock that advances one tick per cd action. Scores decay only while navigation is occurring. Inactive periods leave scores unchanged.ze.sh also replaces the traditional frecency heuristic ([visit count] * recency) with an exponential moving sum over the event series (mathematically closely related to the exponential smoothing used for Unix load averages). This avoids a separate ranking artifact where a long-dormant directory with a large historical visit count jumps to the top on first revisit.The implementation is a single shell file, compatible with bash, zsh, ksh93, and mksh. The database format extends z.sh's format with one additional field, the timestamp field is repurposed to hold the event clock counter.A related project of mine, SD, also uses the event clock and exponential moving sum paradigms but stores the full event history rather than aggregate state. ze.sh explores how far the same ideas can be pushed while remaining close to the original z.sh design.I would be interested in hearing whether others have run into the "inactivity-cliff" behaviour, and whether there are solutions to the problem that I have not considered.
Enrichment
- Theme
- system maintenance and file utilities
- Vertical
- Horizontal
- Function
- Dev tools
- Audience
- Developer
- AI stance
- Not AI
- Project type
- Hobby / open-source project
- Normalized one-liner
- directory jumper with event clock
- Manually corrected
- False
Could you build this?
Yes A shell script or small CLI utility that replaces z.sh's wall-clock decay with an event-counter clock is a focused algorithmic tweak that AI assistants can write quickly.
Discussion
No comments on this launch.
Competitors
Other products that read as similar to this one — 46 launches clear the similarity bar, closest 8 shown.
Attention rank: #42 of 47 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).
Launched 227 days after the earliest competitor.
- A shell-native cd-compatible directory jumper using power-law frecency · hn · 2026-03-04 · 26 upvotes · similarity 0.68
- Smarter Shell History for Zsh · hn · 2026-08-12 · 16 upvotes · similarity 0.47
- jev-shell-history · github · 2026-09-18 · 100 upvotes · similarity 0.44
- MCP file tools silently eat your context window.I built one that doesnt · hn · 2026-03-01 · 6 upvotes · similarity 0.39
- Ez · hn · 2026-08-20 · 6 upvotes · similarity 0.37
- I missed the moving blocks, so I built a real Linux disk defragmenter · hn · 2026-08-25 · 97 upvotes · similarity 0.37
- Forkrun · hn · 2026-03-27 · 151 upvotes · similarity 0.37
- Hc: an agentless, multi-tenant shell history sink · hn · 2026-01-16 · 43 upvotes · similarity 0.36
Other launches for this product
- No other launches for this product.
Same idea, different domain
Nobody's really built a dev tools tool for Sales yet.