Live data from Hacker News

Rob Pike: the origin of dotfiles

plus.google.com

1–10 of 156 posts

Re: Rob Pike: the origin of dotfiles

#7
post #4
post #3

This is a problem that libetc is supposed to help solve: http://ordiluc.net/fs/libetc/

It also begs the question, why it was named "etc" :)

I'm guessing it's because /etc contains configuration files and dot-files are just configuration files. Or do you mean, why was /etc named etc?

Re: Rob Pike: the origin of dotfiles

#8
post #2

Instead of putting a dotfile or dotdir in the user's home directory, do follow the XDG Base Directory specification: http://standards.freedesktop.org/basedir-spec/basedir-spec-l... . It's easy to understand and requires only a marginal increase in effort/code.

I am always pleasantly surprised when programs follow XDG. One notable example is the fish shell. Most shells put dotfiles in $HOME, like .bash_profile or .zshrc. Fish puts everything in .config/fish/.

Re: Rob Pike: the origin of dotfiles

#9
post #4
post #3

This is a problem that libetc is supposed to help solve: http://ordiluc.net/fs/libetc/

It also begs the question, why it was named "etc" :)

You can ask this question for most of unix. Why /etc? Why /bin and /usr/bin? (Answer: At one time hard disks were very small and crashed a lot), why do we presume screens are black and white, etc, etc.

Try to change any of it though, and a lot of luddites will come out screaming bloody murder. It's just not UNIX if it makes sense.

Post reply on HN