4 ms·
Dotfiles Matter
- omgmajk 3y agoGood initiative, I am very tired of having my home-directory full of stuff and would rather put all of that in some separate folder, like .config.
- ConorSheehan1 3y agoI've been working around this using tools built on top of git like [yadm](https://github.com/TheLocehiliosan/yadm https://github.com/TheLocehiliosan/yadm) and relying on `ls-files` to list all my tracked dotfiles and their paths. Still having everything in one place would make things much simpler. Great idea!
- helix278 3y agoI use a script to symlink all dotfiles from a git repository to ~/
- wildrhythms 3y agoWhen the OS is set to 'dark' mode the code snippets on this page are impossible to read (white on white) and the scroll bars are visually broken too. Just a heads up
- jiggawatts 3y agoIt always cracks me up to see an article using phrases like "on major platforms" and just casually ignoring the existence of Microsoft Windows. The current (Vista and later) API for obtaining the special folder locations is documented here: https://learn.microsoft.com/en-us/windows/win32/shell/known-folders https://learn.microsoft.com/en-us/windows/win32/shell/known-... There is also a .NET API for this: https://learn.microsoft.com/en-us/dotnet/api/system.environment.specialfolder?view=net-7.0 https://learn.microsoft.com/en-us/dotnet/api/system.environm... It annoys system administrators to no end to see applications writing their files essentially randomly all over the system. Apps should use the roaming profile for user settings, the local app data folder for per-user cached data, the program data folder for system-wide data, etc...
- eindiran 3y agoI don't think its surprising at all that a document entitled "Dotfiles Matter" about not dumping Unix-style dotfile configuration files into a user's home directory doesn't mention an operating system that doesn't use Unix-style configuration dotfiles.
- Joker_vD 3y agoThe Windows itself may not use dotfiles (although VS Code does IIRC), but lots of stuff lazily ported to Windows, including Git for Windows, do place random dotfiles straight into %USERPROFILE%, which they arguably shouldn't.
- jiggawatts 3y agoThe linked Go library in the original article correctly places dot files in the correct Windows folder. Most of the others don’t.
- josephd79 3y agoI just use a bare git repo. https://www.atlassian.com/git/tutorials/dotfiles https://www.atlassian.com/git/tutorials/dotfiles
- mmcclure 3y agoFor anyone else confused by the comments vs content, this post is about managing your application’s dotfiles, not a personal dotfile management system.
- butz 3y agoMore naming and shaming is needed. ArchLinux has a great list https://wiki.archlinux.org/title/XDG_Base_Directory#Hardcoded https://wiki.archlinux.org/title/XDG_Base_Directory#Hardcode...
- spott 3y agoWhatever you do, use the xdg_base_dirs python package for Unix dotfile location management… not platformdirs. They refuse to honor (even optionally!) xdg environment variables on macs, which is a pita when managing dotfiles across Mac/linux systems, not to mention the “official” macOS way of managing things is just annoying to deal with when you are typing things in the terminal.
- hulitu 3y ago> They refuse to honor (even optionally!) xdg environment variables on macs Who is xdg and why it's polluting my home dir ? Why not use system defaults and only if and when a user changes something, create a hidden config file ?