-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
49 lines (38 loc) · 1.52 KB
/
README
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
This is a repo where I store some of my config files. Nowadays it's trendy
to name repos of this style `dotfiles` — but I created it well before
the convention became mainstream. Thus, `versioned-configs`. You know, for compatibility.
Version-controlling configuration files is nothing new; in fact, some of the
most common config files (e.g. bashrc, vimrc, etc) are more of script code
than "key-value" stores; and version-controlling code is a must.
Structure of the repo
=====================
.
|-- HOME
| |-- bash_profile
| |-- bashrc
| |-- gitconfig
| |-- inputrc
| |-- profile
| |-- ...
| |-- vimrc
| `-- zshrc
|-- install.sh
`-- README
Surprisingly enough, HOME denotes the home directory. Files under HOME are
config files with leading dots in their names removed. To use them, you'll need
to replace your current config files under ~ with symlinks. install.sh helps to do that.
I'd be glad to know how to make git rewrite files instead of replacing them
when manipulating the working copy. This way it could be possible to use hard
links instead of symlinking files in ~; if you know an elegant solution with
hardlinks, please tell me.
Using
=====
Some basic knowledge of git is inherently needed for working with this.
Procedure is simple: clone the repo, setup the links, and you are done.
$ cd ~/.config
$ git clone git://github.com/ulidtko/versioned-configs.git dotfiles
$ cd dotfiles
$ git submodule init && git submodule update
$ less README # ;-)
$ ./install.sh
If you have any questions or comments, contact me.