Live data from Hacker News

Modetc: Move your dotfiles from kernel space

maxwell.eurofusion.eu

41–44 of 44 posts

Re: Modetc: Move your dotfiles from kernel space

#41
post #30

Earlier quoted context omitted.

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

I mean we hide in the first place because configs and we don't want to clutter

But more I was thinking that having ~/bin ~/etc ~/src and so on is just clutter. I use ~/.local/{bin,build,lib} so it's compact and reduces clutter in my home

Re: Modetc: Move your dotfiles from kernel space

#42

I didn’t understand what this was from the title. Perhaps a better description would be “mod_rewrite for your homedir”

That sparked a memory of rewritefs, which I used when rationalising a few hundred thousand legacy mod_rewrite rules at a web hosting company in the early 2010s: https://github.com/sloonz/rewritefs

Looks like it was based on a mid-2000s system called libetc, which did a similar job but had to be LD_PRELOADed: https://ordiluc.net/fs/libetc/

Re: Modetc: Move your dotfiles from kernel space

#43

Earlier quoted context omitted.

'man bash'. Type G. Press PgUp until you see the FILES heading (took one press for my terminal size). There's your list of files. Alternatively, instead of G and PgUp, type /FILES . Of course, this doesn't help at all when software either doesn't have manpages, or doesn't include the list of files in the manpage. Just nitpicking your bash example.

This is HN, not Reddit. You can safely assume that every single person here knows how to use man, particularly if they mention using troff to format it properly. There remains a problem.

I truly wasn't sure if they were aware of man's search and go to options, as they brought up 95 pages as being why it was hard to find configuration file locations for bash.

When I'm searching for configuration file location, I do use '/FILES' or PgUp from the bottom of the manpage, so the length of the manpages is irrelevant.

Re: Modetc: Move your dotfiles from kernel space

#44

Earlier quoted context omitted.

Unfortunately so many packages these days don’t even have a man page at all let alone one with good config info.

Well ... hopefully they're open source and all that.

So the solution to not having a man page that tells you where the config is… is to write a PR for your own documentation for someone else’s project? lol riiight
Post reply on HN