fukamachi / shelly

[OBSOLETE] Use Roswell instead.
http://shlyfile.org
BSD 2-Clause "Simplified" License
63 stars 6 forks source link

Shelly Home #8

Open soderstroff opened 10 years ago

soderstroff commented 10 years ago

Instead of cluttering up the user's home directory, don't you think it would be better to check for $XDG_DATA_HOME, $XDG_CONFIG_HOME, etc. first?

fukamachi commented 10 years ago

You can specify where to install by SHELLY_HOME.

curl -L http://shlyfile.org/shly | SHELLY_HOME=~/.shly /bin/sh

You mean XDG_DATA_HOME should be the default of it?

soderstroff commented 10 years ago

That's precisely what I mean. XDG_DATA_HOME for the lisp image cache and XDG_CONFIG_HOME for the configuration options.

fukamachi commented 10 years ago

Using XDG_DATA_HOME as the default of the installation path is not so difficult. But putting "config" file at the different place makes it complicated and I don't see no benefits from it.

soderstroff commented 10 years ago

Well, it spares the user from having an extra dotfile in their home. There's a growing trend to move configurations into ~/.config/, and I think that's a good idea just for the sake of organization. But you're right, the only benefits are aesthetic.