惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
Docker
B
Blog RSS Feed
Microsoft Security Blog
Microsoft Security Blog
Y
Y Combinator Blog
N
Netflix TechBlog - Medium
M
MIT News - Artificial intelligence
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
B
Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
C
Check Point Blog
The GitHub Blog
The GitHub Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
P
Proofpoint News Feed
Martin Fowler
Martin Fowler
大猫的无限游戏
大猫的无限游戏
GbyAI
GbyAI
博客园_首页
A
About on SuperTechFans
Blog — PlanetScale
Blog — PlanetScale
人人都是产品经理
人人都是产品经理
T
Tailwind CSS Blog
aimingoo的专栏
aimingoo的专栏
T
The Blog of Author Tim Ferriss
The Cloudflare Blog

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店
dloom: the dotfile manager I wanted
swaranga · 2026-06-01 · via Hacker News: Show HN

I have gone through a few generations of dotfile management over the years: hand-written setup scripts, ad-hoc symlinks, shell aliases, Stow and friends, and the usual “I will clean this up later” folder structures. They all worked until I eventually ran into annoying issues.

What I wanted was fairly specific:

  • A single dotfiles repo that works on macOS and Linux.
  • A tool that does not turn shared directories like ~/.config/ or /etc/openvpn/ into all-or-nothing symlinks.
  • A clean way to express machine-specific or tool-specific configs without branching the repo.
  • A safe migration path for files that already exist on the machine.

That set of constraints is what led me to build dloom. It is a small CLI for linking, unlinking, and adopting dotfiles.

The problem I kept running into

Traditional dotfile management is easy when every config file can be treated the same way. In practice, many of my configs require custom conditional handling.

Some configs belong on every machine. Some should only exist on Linux. Some depend on whether tmux, sway, or hyprland is installed. Some need different source files but the same target name. And some target directories are shared with applications that create their own files, caches, or local state.

Directory-level symlinking is nice when the directory is entirely yours. It gets awkward when you want to manage only a few files inside a directory that other programs also touch. ~/.ssh, ~/.config, /etc/openvpn, and similar paths are full of that kind of overlap. I wanted a tool that linked files individually while leaving the surrounding files in the directory as regular files not owned in my dotfiles repo.

A recent concrete example for me was moving to Omarchy. I liked the overall setup, but I did not want to hijack the entirety of ~/.config/hypr/ just to override a few files that I cared about. I wanted Omarchy to keep owning the rest of that directory while my dotfiles repo only managed the pieces I intentionally replaced or overrode.

What dloom does differently

The core idea is simple: dloom symlinks files, not directories.

If I have a dotfile repo like this:

~/dotfiles/
└── zsh/
    ├── .zshenv
    └── .config/
        └── zsh/
            └── aliases.zsh

and I run:

I get this:

~/
├── .zshenv -> ~/dotfiles/zsh/.zshenv
└── .config/
    └── zsh/
        └── aliases.zsh -> ~/dotfiles/zsh/.config/zsh/aliases.zsh

The parent directories stay real directories. Only the files become symlinks. That means other programs can keep writing their own files into .config/zsh/ without fighting the dotfile manager.

There is a trade-off and I am happy with it: if I add a new file to the package later, I rerun dloom link so the corresponding symlink gets created. I prefer that explicit step to handing over the whole target directory to a directory-level symlink.

That one design choice is the entire reason this tool exists.

The three commands I use most

dloom has three main workflows.

This creates symlinks from a package in the source repo into the target directory:

There is also a dry-run mode, which is useful when I am changing a lot of files or bringing up a new machine:

dloom -d link zsh tmux nvim

This removes only the symlinks that point back into the configured source repo. It does not blindly remove files from the target machine.

If dloom backed up something before replacing it, unlink can restore that backup.

3. Adopt

This is the command I wanted during the initial migration from hand-managed dotfiles.

If I already have a real file on disk and want to bring it under management, adopt moves it into the source package and replaces it with a symlink:

dloom adopt zsh ~/.zshrc
dloom adopt ghostty ~/.config/ghostty

That makes migration much less annoying than manually copying files around and then relinking them.

Conditional linking was the other big requirement

Once you keep one dotfiles repo across multiple machines, conditions become unavoidable.

A few common cases:

  • Link one file on macOS and a different one on Linux.
  • Link a tmux config only if tmux is actually installed.
  • Link different fzf shell exports on Ubuntu and Arch because the packaged versions behave differently.
  • Use one SSH config on a work machine and a different one on a personal machine.
  • Map different source filenames to the same target filename depending on host, user, or executable version.

dloom lets me express those rules in YAML instead of burying them in shell scripts.

For example, this kind of setup lets me keep separate source files for macOS and Linux while still targeting the same final file name:

link_overrides:
  zsh:
    file_overrides:
      ".zshrc_linux": # the file in my dotfiles repo; meant for linux
        target_name: ".zshrc"
        conditions:
          os:
            - "linux"
      ".zshrc_mac": # the file in my dotfiles repo; meant for my Mac laptop
        target_name: ".zshrc"
        conditions:
          os:
            - "darwin"

The same mechanism works for executable checks, distro checks, user-specific files, and hostname-specific files.

That has been much easier to reason about than carrying around a pile of bootstrap scripts full of conditionals.

A small example

A minimal repository can look like this:

~/dotfiles/
├── fzf/
│   ├── exports.arch.zsh
│   └── exports.ubuntu.zsh
├── zsh/
│   ├── .zshrc_linux
│   └── .zshrc_mac
├── tmux/
│   └── tmux.new.conf
└── dloom/
    └── config.yaml

With a matching dloom/config.yaml, I can say:

  • Use different fzf export snippets on Ubuntu and Arch, because the Ubuntu package is old enough that the shell integration differs from the newer Arch package.
  • Use .zshrc_linux as ~/.zshrc on Linux.
  • Use .zshrc_mac as ~/.zshrc on macOS.
  • Rename tmux.new.conf to tmux.conf and only link it when the installed tmux version is new enough.
  • Keep the configuration for dloom itself inside the same repo.

That gives me one repository, one CLI, and much less machine-specific glue.

Installation

If you want to try it, the easiest options are Homebrew or go install. It is also available in the Arch AUR. I am trying to get it into the Snap repository but given that this requires access to a user’s home-directory, it is unlikely that the submission will be accepted.

brew tap dloomorg/dloom https://github.com/dloomorg/dloom
brew install dloomorg/dloom/dloom

or:

go install github.com/dloomorg/dloom

There are also prebuilt binaries and example configurations in the repository.

Why I like this shape

I did not want a very ambitious dotfile framework. I wanted a small tool that handled the annoying parts well:

  • File-level symlinking.
  • Safe unlinking.
  • Backups.
  • Dry runs.
  • Conditional linking.
  • An adoption workflow for existing files.

If your current dotfile setup is a mix of fragile symlinks, one-off shell scripts, and “I should clean this up later” logic, dloom might be useful. The README has more detailed examples, but the mental model is intentionally small: organize files into packages, describe exceptions in YAML, and let the tool do the tedious part.