Debian Codegraph @

man/rcrc.5

raw
1 .Dd July 28, 2013
2 .Dt RCRC 5
3 .Os
4 .Sh NAME
5 .Nm rcrc
6 .Nd configuration for rcm
7 .Sh SYNOPSIS
8 .Sm off
9 .Ns Ev X
10 .Ns =
11 .Ns Qo
12 .Va a\ \&
13 .Va b\ \&
14 .Va c
15 .Qc
16 .Sm on
17 .Sh DESCRIPTION
18 The rcm dotfile manager can be configured using a
19 .Pa .rcrc
20 file in your home directory. This location can be changed by setting the
21 .Pa RCRC
22 environment variable. The format is POSIX shell. It is sourced in by the
23 .Xr lsrc 1 ,
24 .Xr mkrc 1 ,
25 .Xr rcdn 1 ,
26 and
27 .Xr rcup 1
28 programs.
29 .Pp
30 It supports these variables:
31 .Bl -tag -width "DOTFILES_DIRS"
32 .It Va COPY_ALWAYS
33 always copy files that match the listed globs, never symlink them.
34 .
35 .It Va DOTFILES_DIRS
36 the source directories for dotfiles. The first in the list is the
37 source to which dotfiles created using
38 .Xr mkrc 1
39 are installed. The default value is
40 .Pa ~/.dotfiles
41 .
42 .It Va EXCLUDES
43 a space-separated list of exclude patterns. Exclude patterns are
44 explained in detail in
45 .Xr lsrc 1
46 under the section
47 .Sx EXCLUDE PATTERN .
48 .
49 .It Va HOSTNAME
50 the hostname for this computer. This is normally computed using the
51 .Xr hostname 1
52 command, but this command is non-standard and can prove unreliable. The
53 .Va HOSTNAME
54 variable forces a known hostname.
55 .It Va TAGS
56 the default tags.
57 .
58 .It Va SYMLINK_DIRS
59 a space-separated list of patterns. Directories matching a pattern are
60 symlinked instead of descended. Patterns are explained in detail in
61 .Xr lsrc 1
62 under the section
63 .Sx EXCLUDE PATTERN .
64 .
65 .It Va UNDOTTED
66 a space separated list of patterns. Files matching this pattern
67 will be symlinked without a leading dot. If a file is also in
68 .Va SYMLINK_DIRS ,
69 then the directory will be symlinked without a leading dot.
70 Patterns are explained in detail in
71 .Xr lsrc 1
72 under the section
73 .Sx EXCLUDE PATTERN .
74 .
75 .El
76 .Sh FILES
77 .Pa ~/.rcrc
78 .Sh EXAMPLES
79 .Dl COPY_ALWAYS="ssh/id_* weechat/* netrc"
80 .Dl COPY_ALWAYS="*"
81 .Dl DOTFILES_DIRS="/home/mike/.dotfiles /usr/share/dotfiles"
82 .Dl EXCLUDES="irbrc *:*emacs* dotfiles:python*"
83 .Dl HOSTNAME="eggplant"
84 .Dl TAGS="freebsd development email git laptop gmail notmuch"
85 .Dl SYMLINK_DIRS="zprezto texmf"
86 .Dl UNDOTTED="texmf"
87 .Sh SEE ALSO
88 .Xr lsrc 1 ,
89 .Xr mkrc 1 ,
90 .Xr rcdn 1 ,
91 .Xr rcup 1 ,
92 .Xr rcm 7
93 .Sh AUTHORS
94 .Nm
95 is maintained by
96 .An "Mike Burns" Aq Mt [email protected]
97 and
98 .Lk http://thoughtbot.com thoughtbot
99 .Sh BUGS
100 We only expand tilde inside
101 .Va DOTFILES_DIRS
102 and not inside any patterns. For more notes on the caution you should
103 exercise around patterns, see the BUGS section of
104 .Xr lsrc 1 .