125
submitted 2 days ago by exu@feditown.com to c/linux@lemmy.ml

I was kind of surprised to see this article on HackerNews, so I thought I'd ask here; how do you handle your dotfiles and do you share them publicly?

My own dotfiles started from those provided by ArcoLinux, with a bunch of changes over the years I had them. Currently installed using Ansible, because that's more sensible than Bash for this imo.

https://git.exu.li/exu/configs

you are viewing a single comment's thread
view the rest of the comments
[-] Shareni@programming.dev 2 points 1 day ago

Currently installed using Ansible, because that's more sensible than Bash for this imo.

What do you mean? It's just a few lines to symlink everything for me.

[-] exu@feditown.com 3 points 1 day ago

I don't use symlinks, I copy the files to their place. This also means I have to manually copy updates back into my repo, but it massively reduces the risk of committing a private key or a bunch of bad changes to my repo.

My switch to Ansible from bash was mainly motivated to make the initial setup more robust. My setup script would need fixes every time I installed a new machine and be semi-unattended at best. I find it also easier to make changes and add new steps

For reference, here are the bash scripts I used before:
config script
setup script

this post was submitted on 06 Aug 2025
125 points (100.0% liked)

Linux

57107 readers
775 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS