Live data from Hacker News

Modetc: Move your dotfiles from kernel space

maxwell.eurofusion.eu

1–10 of 44 posts

Re: Modetc: Move your dotfiles from kernel space

#4

I struggle to see a valid usecase for this that isn’t handled by symlinks.

If I symlink ~/.ssh -> ~/.config/ssh, I still have .ssh in my ~. Whereas if I rewrite it, I don't.

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

Re: Modetc: Move your dotfiles from kernel space

#5
post #4

Earlier quoted context omitted.

If I symlink ~/.ssh -> ~/.config/ssh, I still have .ssh in my ~. Whereas if I rewrite it, I don't.

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.

Re: Modetc: Move your dotfiles from kernel space

#6
One of the annoyances of Linux is working out where configuration information is, following through multiple layers of indirection and files over-riding other files. This looks like adding another layer, another place to look, and if you're reading the man file for a shell (for example) it probably won't even mention that this could invalidate the information contained in that in the man file.

Re: Modetc: Move your dotfiles from kernel space

#7
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.

Abandon hope.

I just treat ~ as a system-owned configuration area, and put my actual files (documents, photos, etc.) in a completely different hierarchy under /.

Re: Modetc: Move your dotfiles from kernel space

#8
post #6

One of the annoyances of Linux is working out where configuration information is, following through multiple layers of indirection and files over-riding other files. This looks like adding another layer, another place to look, and if you're reading the man file for a shell (for example) it probably won't even mention that this could invalidate the information contained in that in the man file.

Always check the man pages..

Re: Modetc: Move your dotfiles from kernel space

#9
post #6

One of the annoyances of Linux is working out where configuration information is, following through multiple layers of indirection and files over-riding other files. This looks like adding another layer, another place to look, and if you're reading the man file for a shell (for example) it probably won't even mention that this could invalidate the information contained in that in the man file.

Tomorrow: modify man pages from kernel space!

Re: Modetc: Move your dotfiles from kernel space

#10
post #6

One of the annoyances of Linux is working out where configuration information is, following through multiple layers of indirection and files over-riding other files. This looks like adding another layer, another place to look, and if you're reading the man file for a shell (for example) it probably won't even mention that this could invalidate the information contained in that in the man file.

> working out where configuration information is

Generally, good behaved applications have an entry in their man page that spells out these details for you, so you don't have to work out anything.

Post reply on HN