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

推荐订阅源

S
SegmentFault 最新的问题
爱范儿
爱范儿
博客园 - Franky
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
WordPress大学
WordPress大学
宝玉的分享
宝玉的分享
雷峰网
雷峰网
酷 壳 – CoolShell
酷 壳 – CoolShell
IT之家
IT之家
有赞技术团队
有赞技术团队
美团技术团队
Last Week in AI
Last Week in AI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
大猫的无限游戏
大猫的无限游戏
The Cloudflare Blog
Jina AI
Jina AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Engineering at Meta
Engineering at Meta
T
Tailwind CSS Blog
J
Java Code Geeks
Martin Fowler
Martin Fowler
I
InfoQ
小众软件
小众软件
MongoDB | Blog
MongoDB | Blog

Show HN

Show HN: AI agents for UK GDAD PCF roles and their skills The Two Pillars: Mixer Mode and Meta-Software in the Reorganization of Software Work After AI GitHub - JaiCode08/teleport-env What 1,000+ Harness Experiments Taught Me About Self-Improving Agents Show HN: Liiists, a Markdown-first, iOS and CLI list app SwiperTab – Get this Extension for 🦊 Firefox (en-US) GitHub - kouhxp/fftext: Summarize, explain, fact-check, or translate any text, URL, or file. No GPU. No cloud. One command GitHub - sweetpad-dev/sweetpad: Develop Swift/iOS projects using VSCode GitHub - dogmaticdev/IRON: IRON a.k.a. Intermediate Representation Object Notation is a Interpreter/Database that is used to create Programming Languages. GitHub - sjhalani7/vaen: Package your AI coding harness into a portable .agent file, and share it across repos, teams, & the community without ever having to copy-paste instructions, skills, MCP config, or secrets. Show HN: Gandalf the Grader Show HN: Citadeld – replay any CI failure locally from a single file GitHub - tdortman/cuSBF: High-Performance GPU Super Bloom Filter coral-ai/claude-code-token-xray at main · Coral-Bricks-AI/coral-ai GitHub - ulyssestenn/funes: Funes is a Git-based framework for LLM-managed knowledge work: an AI Librarian ingests raw sources, builds an interlinked Markdown knowledge base, and uses it to produce cited reports, analyses, and other outputs. GitHub - ThatXliner/gah: Git Add Hunk, built for agents to use GitHub - harmont-dev/harmont-cli: Command-line client for the Harmont CI platform GitHub - brooksmcmillin/mcp-authflow: OAuth 2.0 Authorization Server framework for MCP servers GitHub - javaid-codes/audit-supply-chain-agents GitHub - amorey/gochan: A small library of common channel architectures for Go, inspired by Rust GitHub - arifozgun/OpenGem: Free, Open-Source AI API Gateway with Gemini, OpenAI & Anthropic Compatibility in 1 file GitHub - Pranesh950/BioPetals: 🌸 Run BIOxAI models at home, BitTorrent-style. Fine-tuning and inference up to 10x faster than offloading GitHub - cnguyen14/bounty-doctor: Diagnose a GitHub bounty issue before you waste hours: detects honeypot scam repos, AI-bot attempt swarms, and stale contests. Show HN: CoreMCP – MCP Server for On-Prem DBs Show HN: KittyHTML – Render HTML/CSS as an inline image in your terminal GitHub - bingud/filemat: Web-based file manager Show HN: TruthLens – Free multi-signal deepfake image detector GitHub - apexlocal-jz/claude-usage-tray: Windows system-tray app showing your Claude Code rate-limit usage at a glance. Zero deps, ~300 lines of PowerShell. Cross-IDE (works regardless of VS Code, Cursor, plain terminal). Release v0.1.2.1 · kouhxp/yapsnap GitHub - noopolis/moltnet: Self-hostable chat network for AI agents. Pre-built bridges for Claude Code, Codex, and the Claws. Rooms, DMs, history. No Slack bots, no Matrix, no glue code.
dloom: the dotfile manager I wanted
swaranga · 2026-06-01 · via 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.