TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

A cross-platform multi-target dotfiles manager written in Rust

81 点作者 michidk2 个月前

20 条评论

glutamate2 个月前
Serious question: why Rust? Sounds like this is not exactly systems level programming or any user would suffer from or even notice garbage collection latency.<p>Is Rust building up a decent ecosystem now for application programming? When I tried developing in Rust I came to the conclusion that you pay a heavy price for not having a garbage collector. Was I doing it wrong?
评论 #43228925 未加载
评论 #43228863 未加载
评论 #43229020 未加载
评论 #43230196 未加载
评论 #43231507 未加载
评论 #43228891 未加载
评论 #43230312 未加载
评论 #43229021 未加载
评论 #43244729 未加载
评论 #43228929 未加载
评论 #43228926 未加载
评论 #43229220 未加载
评论 #43233168 未加载
评论 #43229196 未加载
评论 #43229916 未加载
tempodox2 个月前
I just use a “dotfiles” folder that is a git repo and then hard-link the files in there into the home directory. One for unprivileged user and one for root on each platform. Simple enough and doesn&#x27;t require an extra tool.
评论 #43233370 未加载
评论 #43230065 未加载
cquintana922 个月前
Looks like we took similar approaches!<p><a href="https:&#x2F;&#x2F;github.com&#x2F;cquintana92&#x2F;dotfilers">https:&#x2F;&#x2F;github.com&#x2F;cquintana92&#x2F;dotfilers</a><p>Congratulations, you too unlocked the &quot;None of the hundreds that are out there work exactly like I want, so I&#x27;ll write my own&quot; badge.
评论 #43228577 未加载
protortyp2 个月前
Completely unrelated, but I recently switched to using nix with home manager and nix-darwin to handle my entire dev setup and dotfiles.<p>If you work a lot in remote dev environments (I use coder a lot at work) that really does the trick.
评论 #43234536 未加载
评论 #43230313 未加载
dankobgd2 个月前
There are many of these tools but i don&#x27;t like to think of these things like dotfiles. What is a dotfile? A `.something` file in my home dir? is &#x2F;etc&#x2F;environment a dotfile? No, but i wan&#x27;t to manage it still. What about Librewolf policies.json in &#x2F;usr&#x2F;lib64&#x2F;librewolf&#x2F;policies or similar. It&#x27;s not a dotfile either. For some tools, i need some other tools to exist already in path. What about zsh where i want to sync 3 git repos for syntax highlighting and other scripts? Also what about secrets, maybe i want some encrypted stuff so i need a solution for that also.<p>Ansible is the best for these things, no symlinks needed, just configure what you want to exist and where and you can template configs or copy them or use some modules like `git_config` to then generate that ini file etc. Ansible vault also handles encryption easily so i can manage ssh keys, passwords...
MotiBanana2 个月前
Pretty cool, I personally just use Stow.<p>1. git clone my dotfiles repo<p>2. run `stow .`<p>3. profit<p>This pretty much guarantees that if my Mac dies today, I can just get up and running in no time on a new machine.
评论 #43230072 未加载
评论 #43230231 未加载
omani2 个月前
&gt; This project was driven by the personal need of having to manage several dotfiles for different machines&#x2F;targets.<p>the functionality OP is searching for is already provided by chezmoi. and many more features.
Ecco2 个月前
Dumb yet serious question : what problem is a dotfile manager even trying to solve?<p>Personally I have a git repo in my home directory and just commit dotfiles to it. The only drawback is that git always think there’s a git repo no matter where I am in my home, so I usually rename the .git folder to .git_hidden. And on the (rare) occasion that I want to update one of my dotfiles I just rename the .git_hidden directory back to .git.<p>It’s really just two “mv” commands, I can’t believe you need a tool for just that.<p>What am I missing out on?
评论 #43231860 未加载
评论 #43232403 未加载
baby_souffle2 个月前
Is there a concise comparison between other tools?<p>Specifically looking to see where this differs from chezmoi.
k3vinw2 个月前
Shameless plug for my bare repo git shell wrapper approach inspired by others: <a href="https:&#x2F;&#x2F;github.com&#x2F;k3vinw&#x2F;simple-dotfiles-kit">https:&#x2F;&#x2F;github.com&#x2F;k3vinw&#x2F;simple-dotfiles-kit</a><p>I’ve been using it for a couple years now and it’s worked well for me across multiple machines.
l00sed2 个月前
I&#x27;ve used a similar tool, called dotter, by SuperCuber on GitHub. It&#x27;s actually very similar--uses a handlebars template language and built in Rust. Definitely a must have if you&#x27;re on multiple *nix systems and you&#x27;ve invested time into developing your configs!
DiabloD32 个月前
So, I&#x27;m usually the huge Rust promoter, but we already have a lot of dotfiles managers, and Chezmoi, although written in Go, is right there.<p>What can this one do that the other ones don&#x27;t?<p>The README lists features that, well, I&#x27;d already expect modern dotfile managers to be able to do.
1oooqooq2 个月前
why something so specialized needs a configuration file?<p>my dot file scripts just have very opinionated dir&#x2F;file naming conventions and things just fall into place. it&#x27;s not like you need to give tune much... even adding the template thing which i think is overkill (time would be best spent with a way to validate code cross platform of you ask me.. templating makes this more difficult while pretending to remove the need for it)
评论 #43229074 未加载
gbraad2 个月前
good old stow and git, as most distros come with it. though, eager to try making a replacement in go that is a single binary
bipson2 个月前
From skimming it seems it is feature wise very similar to yadm.<p>Good, because I am a fan of yadm, but I also don&#x27;t feel the need to switch ;)
devokin2 个月前
Why not stow? Am I missing out? I dont use Windows so not sure I need the cross platform.
评论 #43232162 未加载
branneman2 个月前
Why no MacOS support if you claim cross-platform? That&#x27;s not honest.
评论 #43229163 未加载
theophinetheo2 个月前
Could have included a few screenshots.
评论 #43232187 未加载
johnisgood2 个月前
How about using GNU stow?
alkonaut2 个月前
Is this using ”dotfiles” as a general term for ”text based configuration files”? Is this a thing?<p>I only have two actual dotfiles on my system (git and one more)
评论 #43228948 未加载
评论 #43229473 未加载
评论 #43230060 未加载