Following this thread ( http://www.shatters.net/forum/viewtopic.php?t=6851 )
I've added support for a user level celestia.cfg file.
~/.celestia.cfg is parsed after the system config file, at the moment non
array variables are overwritten while arrays are expanded. It might be useful
to add an option to entirely replace array variables as well (?).
I've also added word expansion (shell like) to the variables which specify
files or directories.
For example a .celestia.cfg file could look like :
ExtrasDirectories [ "~/Documents/extras"]
Word expansion is done only if it results in one string (if you have ~/extras1
and ~/extras2, you can't use ExtrasDirectories [ "~/extras*"]), and command
substitution is disabled.
The WordExp function which does the expansion is implemented as an identity
stub on Windows. It's probably not as useful to have this on Windows as it is
on Unix, but if anyone cares the functionality probably exists in win32...
From: Pat Suwalski <pat@su...> - 2005-03-05 15:23:24
Christophe Teyssier wrote:
> ~/.celestia.cfg is parsed after the system config file, at the moment non
This is good stuff! I was thinking at one point of doing something like
this, but it never occurred to me to make it an extension of the