Live data from Hacker News

Dotfile madness

0x46.net

191–200 of 534 posts

Re: Dotfile madness

#192

I have the opposite perspective. Dotfiles are fine, and I find the proliferation of XDG directories confusing, mostly because they're misused. Why should a game's save files be under .config? Making dotfiles under $HOME is a simple approach that's worked for a long time and that doesn't cause serious problems, and I see no need to adopt the XDG approach, which I see as overengineered.

[deleted]

Re: Dotfile madness

#193
post #55
post #7

Earlier quoted context omitted.

It's often worse on Windows, since dotfiles aren't hidden and meny dev tools assume they'll be running on *nix even when they support Windows. https://imgur.com/a/Im6G20B capture from my windows box of my $HOME.

Plus if you try to rename a dotfile through explorer, it won't let you Then if you try to make a dotfile through powershell, it has a different text encoding than *nix, which some programs (git) rely on

Plus if you try to rename a dotfile through explorer, it won't let you

It does, rename it .dotfile. so with an extra . at the end.

it has a different text encoding than nix,*

You don't specify how you do this, but most text output commands out there have an -Encoding parameter. Or else set it globally to what you want, good read here: https://stackoverflow.com/questions/40098771/changing-powers...

Re: Dotfile madness

#194

One thing I’ve been thinking about is that it would be nice to tag files with the program that created them. Aside from the clutter in my home directory, I have a lot of files that I have to guess as to where they originated from based on metadata like modification timestamps or permissions, but it would be nice to see something like “~/.config was created by some-tool”.

This could be done with the audit subsystem of linux

Re: Dotfile madness

#195
Related pet peeve: macOs '.DS_Store' files. Can someone better-informed than me please explain how to prevent heir creation? Barring that, I'd settle for a justification.

Re: Dotfile madness

#196
TIL I'm using ~ in the wrong way. For me ~ was always the default place for user-level configurations and time taught me to do so: .X* .bash* .vimrc and others.

Than I create my personal folders ~/{src, docs, bin, porn, anime etc}. ~ is for temporary files I'll delete after use like windows users do with their Desktop folder.

Also my ls isn't an alias with -a flag...I'm alone here? :|

Re: Dotfile madness

#197
post #55
post #7

Earlier quoted context omitted.

It's often worse on Windows, since dotfiles aren't hidden and meny dev tools assume they'll be running on *nix even when they support Windows. https://imgur.com/a/Im6G20B capture from my windows box of my $HOME.

Plus if you try to rename a dotfile through explorer, it won't let you Then if you try to make a dotfile through powershell, it has a different text encoding than *nix, which some programs (git) rely on

[deleted]

Re: Dotfile madness

#198

TIL I'm using ~ in the wrong way. For me ~ was always the default place for user-level configurations and time taught me to do so: .X* .bash* .vimrc and others. Than I create my personal folders ~/{src, docs, bin, porn, anime etc}. ~ is for temporary files I'll delete after use like windows users do with their Desktop folder. Also my ls isn't an alias with -a flag...I'm alone here? :|

I do the same kind of things actually. I do not have ls alias with -a flag, and I do other thing like you mention, too. You are not alone here.

Re: Dotfile madness

#199

TIL I'm using ~ in the wrong way. For me ~ was always the default place for user-level configurations and time taught me to do so: .X* .bash* .vimrc and others. Than I create my personal folders ~/{src, docs, bin, porn, anime etc}. ~ is for temporary files I'll delete after use like windows users do with their Desktop folder. Also my ls isn't an alias with -a flag...I'm alone here? :|

I rarely type ls; I have l aliased to something like ls -lAhFvN

Re: Dotfile madness

#200
Why should non-desktop applications follow the XDG standard? Even for applications designed for "desktop" use, the standard is questionable IMO. After all, the "Desktop" folder that OP is complaining about is an XDG recommendation.
Post reply on HN