-
Notifications
You must be signed in to change notification settings - Fork 3
/
README
95 lines (52 loc) · 1.62 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
---------------
dotfiles-helper
---------------
A small script to help manage your dot files across machines.
It can add, remove, and use files from your dotfiles repository, as
well as synchronise between your local repository and the origin.
It also maintains a mapping between files in your repository and names
on your system. For example, ~/.tmux.conf will simply be tmux.conf
in your dotfiles repository.
Currently dotfiles only handles files, but it can handle files inside
directories other than your home directory.
Requirements
------------
* Bash, grep, sed
* GIT
Installation
------------
Copy or link 'dotfiles' to somewhere that is in your shell path.
By default dotfiles will use ~/.dotfiles as your local repository.
Note that it must be on the same filesystem as your home directory
as dotfiles uses hard links.
Usage
-----
Initial setup:
$ dotfiles setup
$ dotfiles setup-remote <repo-path-or-url>
$ dotfiles add <file>
...
$ dotfiles sync
On your other computers:
$ dotfiles setup
$ dotfiles setup-remote <repo-path-or-url>
$ dotfiles use :all
To add a file:
$ dotfiles add <file>
Example: "dotfiles add ~/.vimrc" will add "~/.vimrc"
to your repository, and name it "vimrc"
To use a particular file:
$ dotfiles use <name>
To use all the files in the repository:
$ dotfiles use :all
To synchronise your dotfiles:
$ dotfiles sync
To see your status:
$ dotfiles status
To update your dotfile changes to your local repo:
$ dotfiles update
Remove a file from the repository:
$ dotfiles remove <name>
Author
------
dotfiles-helper is by Lucas Martin-King and licenced under the GPLv2