aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/README.md
blob: 307eb9a43a66618e7df53955897d2e7d55e683f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Windows configuration files
===========================

An easy and ad-hoc way to store & sync various configuration files across
Windows installations.
Actual configuration files are stored in this repository in directories which
names must roughly match the `%.+%` regular expression.
The part between the percent signs is the name of an environment variable.
Its value replaces the path of this directory, making for the path of a symlink
which would point to a file in this repository.

A database of symlinks is maintained in case a file is removed from this
repository (the corresponding symlink is then deleted).
Default database file name is "db.bin".

Usage
-----

To update the symlinks, run `./update.sh`.
Requires Cygwin.

For example, here's a possible representation of the "%PROGRAMDATA%" directory:

    %PROGRAMDATA%/
    └── a
        └── b
            └── c
                └── test.txt

Running the script above would create a symlink at
"C:\ProgramData\a\b\c\test.txt" pointing to "%PROGRAMDATA%\a\b\c\test.txt" in
this repository.

Limitations
-----------

Only alphanumeric variable names are supported.
Speaking more precisely, directory names must match the
`^%[_[:alpha:]][_[:alnum:]]*%$` regular expression.
This means that, for example, the environment variable `ProgramFiles(x86)` is
not supported.

License
-------

Distributed under the MIT License.
See [LICENSE.txt] for details.

[LICENSE.txt]: LICENSE.txt