diff options
author | Mike Burns <mike@mike-burns.com> | 2013-07-08 17:08:50 +0200 |
---|---|---|
committer | Mike Burns <mike@mike-burns.com> | 2013-07-09 21:24:19 +0200 |
commit | f126c5cfcd68e28720cc5cd2d368734d89a5875e (patch) | |
tree | 52a11f057023ef8204e0e83752a07303325e3634 /man/man5/rcrc.5 | |
parent | 2e2573fbe07d8a1750ccdda7e0a146fef55fd50d (diff) |
Support multiple source directories
The `rcup` and `mkrc` commands now support multiple source directories.
This is useful for sharing dotfiles between friends, spliting dotfiles
into private and public ones, or other such situations.
In `mkrc` this support means that you can specify the destination
directory for your dotfile, either from the command-line or from you
`~/.rcrc` configuration.
In `rcup` this means that it will recur through all source directories,
in order, creating the symlinks as needed. This means that duplicated
files will not be overridden. The order can be specified by the `-d`
option, which can be repeated, or by the `DOTFILES_DIRS` option in your
`~/.rcrc` configuration. The `-d` option overrides the configuration.
For example, this configuration file will update from the two
directories in order:
DOTFILES_DIRS="/home/mike/.dotfiles/public /home/mike/.dotfiles/private"
Any source directories that don't exist are skipped.
Diffstat (limited to 'man/man5/rcrc.5')
-rw-r--r-- | man/man5/rcrc.5 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/man/man5/rcrc.5 b/man/man5/rcrc.5 index 1032504..67dc2a3 100644 --- a/man/man5/rcrc.5 +++ b/man/man5/rcrc.5 @@ -16,9 +16,15 @@ It supports these variables: \fBTAGS\fR the default tags used by \fBrcup\fR\|. +.TP +\fBDOTFILES_DIRS\fR +the source directories for dotfiles. The first in the list is the +canonical source. The default value is \fI~/.dotfiles\fR\|. + .SH EXAMPLES \&\fBTAGS="freebsd development email git laptop gmail notmuch"\fR +\&\fBDOTFILES_DIRS="/home/mike/.dotfiles /usr/share/dotfiles"\fR .SH AUTHOR |