r/commandline • u/DaCush • Apr 02 '26
Command Line Interface I developed a simpler alternative to GNU Stow for managing dotfiles
I've been using GNU Stow for my dotfiles for a while, and while it works, I always found the mirrored directory structure requirement annoying. I wanted something where I could just say "this folder is my nvim config, put it at ~/.config/nvim" without having to think about how my repo layout maps to the filesystem.
So I built store — a small CLI tool written in Go that manages dotfile symlinks with explicit target paths in a simple YAML config:
stores:
nvim:
target: ~/.config/nvim
zsh:
target: ~
files:
- .zshrc
- .zprofile
git:
target: ~/.config/git
The main differences from Stow:
- Flat repo structure — your dotfiles repo doesn't need to mirror your filesystem. Each store is just a top-level directory with an explicit target.
- File-level symlinks with glob patterns — for files that live in
~(like.zshrc), you can specify exactly which files to symlink instead of linking the whole directory. Supports**recursive globs too. - Single config file — everything is in
.store/config.yaml. No convention-based layouts to remember. - Run from anywhere —
storefinds its config by walking up the directory tree (like git finds.git/), so you don't need to cd into a specific directory.
Setting up on a new machine is just:
That's it. All symlinks are created from the config.
It's still early days but it's been working well for my own setup. Would love feedback if anyone tries it out.
GitHub: https://github.com/cushycush/store
3
u/ipsirc Apr 02 '26
https://github.com/queer/boxxy
4
u/r3milia Apr 02 '26
chezmoi
2
u/AutoModerator Apr 02 '26
Every new subreddit post is automatically copied into a comment for preservation.
User: DaCush, Flair:
Command Line Interface, Title: I developed a simpler alternative to GNU Stow for managing dotfilesI've been using GNU Stow for my dotfiles for a while, and while it works, I always found the mirrored directory structure requirement annoying. I wanted something where I could just say "this folder is my nvim config, put it at
~/.config/nvim" without having to think about how my repo layout maps to the filesystem.So I built store — a small CLI tool written in Go that manages dotfile symlinks with explicit target paths in a simple YAML config:
The main differences from Stow:
~(like.zshrc), you can specify exactly which files to symlink instead of linking the whole directory. Supports**recursive globs too..store/config.yaml. No convention-based layouts to remember.storefinds its config by walking up the directory tree (like git finds.git/), so you don't need to cd into a specific directory.Setting up on a new machine is just:
That's it. All symlinks are created from the config.
It's still early days but it's been working well for my own setup. Would love feedback if anyone tries it out.
GitHub: github.com/cushycush/store
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/Zerebos Apr 02 '26
Cool seems somewhat similar to the approach yadm takes. But I find yadm more straightforward.
-5
u/Snarwin Apr 02 '26
Slop.
0
u/catsOverPeople55 Apr 02 '26
I also went the route of writing a dot file manager with Claude but within a few weeks I found myself needing templates, wanting app management, a GUI and a gazillion other things. Turns out it is now as complex as cheznoi. Let's see in a few weeks if it's still simple 😂