Live data from Hacker News

Modetc: Move your dotfiles from kernel space

maxwell.eurofusion.eu

21–30 of 44 posts

Re: Modetc: Move your dotfiles from kernel space

#21
post #5
post #4

Earlier quoted context omitted.

Will you not have `~/.ssh`? If you have `.ssh .config/ssh` as a rewrite rule, `stat ~/.ssh` will still find it.

The point is to have a clean home directory.

On Windows this was always easier because, for some reason, most everyone respected %appdata% compared to XDG_CONFIG_HOME, but also because hidden files wasn’t just a naming convention but an actual separate metadata flag.

Re: Modetc: Move your dotfiles from kernel space

#24

From the example: # XDG "compliant" programs .config/ etc/ .local/state/ var/lib/ .cache/ var/cache/ This is the first I’ve heard of using ~/etc instead of ~/.config as $XDG_CONFIG_DIR. Is there any precedent for that?

Well, it's just the natural extension of the FHS convention to the home directory.

I didn't come up with this idea, though, I think I saw this in a reddit thread and started doing it myself: I like that the directories are visible and follow the usual structure.

Re: Modetc: Move your dotfiles from kernel space

#27
post #24

From the example: # XDG "compliant" programs .config/ etc/ .local/state/ var/lib/ .cache/ var/cache/ This is the first I’ve heard of using ~/etc instead of ~/.config as $XDG_CONFIG_DIR. Is there any precedent for that?

Well, it's just the natural extension of the FHS convention to the home directory. I didn't come up with this idea, though, I think I saw this in a reddit thread and started doing it myself: I like that the directories are visible and follow the usual structure.

Why not push it under a hidden directory? Like ~/.local/etc? If we're reconstructing some of the hierarchy I think it makes sense to group and hide. Isn't the problem that the home folder is getting cluttered?

Re: Modetc: Move your dotfiles from kernel space

#28
post #24

From the example: # XDG "compliant" programs .config/ etc/ .local/state/ var/lib/ .cache/ var/cache/ This is the first I’ve heard of using ~/etc instead of ~/.config as $XDG_CONFIG_DIR. Is there any precedent for that?

Well, it's just the natural extension of the FHS convention to the home directory. I didn't come up with this idea, though, I think I saw this in a reddit thread and started doing it myself: I like that the directories are visible and follow the usual structure.

But why would I want those directories visible in my home dir?

Re: Modetc: Move your dotfiles from kernel space

#29
post #5

Earlier quoted context omitted.

The point is to have a clean home directory.

On Windows this was always easier because, for some reason, most everyone respected %appdata% compared to XDG_CONFIG_HOME, but also because hidden files wasn’t just a naming convention but an actual separate metadata flag.

Always... Except for the decades before this became common. Never a bloated C: root directory. Microsoft even had games store stuff in My Documents\Games at one point. My Documents was a user dir that saw a lot of abuse over the years.

Re: Modetc: Move your dotfiles from kernel space

#30
post #24

Earlier quoted context omitted.

Well, it's just the natural extension of the FHS convention to the home directory. I didn't come up with this idea, though, I think I saw this in a reddit thread and started doing it myself: I like that the directories are visible and follow the usual structure.

Why not push it under a hidden directory? Like ~/.local/etc? If we're reconstructing some of the hierarchy I think it makes sense to group and hide. Isn't the problem that the home folder is getting cluttered?

Why would I hide them? They're not really special and since I'm organising them with modetc they're not cluttered. For reference, my home looks something like this

    ~
    ├── bin         binaries and scripts
    ├── etc         configuration files
    ├── var
    │   ├── lib     program data
    │   └── cache   program caches
    ├── src         git repositories
    ├── img         pictures
    ├── mail        email in maildir format
    ├── note        text notes, todo
    ├── doc         documents
    └── down        downloads
Post reply on HN