Debian Codegraph @

man/rcdn.1

raw
1 .Dd August 2, 2013
2 .Dt RCDN 1
3 .Os
4 .Sh NAME
5 .Nm rcdn
6 .Nd remove dotfiles as managed by rcm
7 .Sh SYNOPSIS
8 .Nm rcdn
9 .Op Fl hKkqVv
10 .Op Fl B Ar hostname
11 .Op Fl d Ar dir
12 .Op Fl I Ar excl_pat
13 .Op Fl S Ar excl_pat
14 .Op Fl s Ar excl_pat
15 .Op Fl t Ar tag
16 .Op Fl U Ar excl_pat
17 .Op Fl u Ar excl_pat
18 .Op Fl x Ar excl_pat
19 .Op Ar files ...
20 .Sh DESCRIPTION
21 This program will remove all the rc files that the
22 .Xr rcm 7
23 suite knows about. This can be further controlled with the
24 .Fl t
25 and
26 .Fl d
27 flags.
28 .Pp
29 The files that are removed are symlinks. However, the
30 .Va COPY_ALWAYS
31 setting in
32 .Xr rcrc 5
33 modifies this. If a rc file is not a symlink but an ancestor directory
34 is, that directory is removed. If a rc file is not a symlink but is
35 listed in
36 .Va COPY_ALWAYS
37 the file is removed.
38 .Pp
39 The
40 .Nm
41 program will run hooks before and after removing files, if these hooks
42 exist. Hooks are executable programs inside the dotfiles directory, with
43 the following names:
44 .Pa hooks/pre-down
45 and
46 .Pa hooks/post-down .
47 These hooks are run each time
48 .Nm
49 is run and therefore must be idempotent.
50 .Pp
51 Hooks will be executed one at a time, sorted alphabetically. For instance,
52 .Pa hooks/pre-down/animals
53 will run before
54 .Pa hooks/pre-down/aquariums ,
55 and
56 .Pa hooks/pre-down/4-eyes
57 will run before
58 .Pa hooks/post-down/2-u-nothing-compares .
59 .Bl -tag -width "-I EXCL_PAT"
60 .It Fl B Ar HOSTNAME
61 treat
62 .Pa host-HOSTNAME
63 as the host-specific directory instead of computing it
64 .It Fl d Ar DIR
65 remove rc files from the
66 .Ar DIR .
67 This can be specified multiple times.
68 .It Fl h
69 show usage instructions.
70 .It Fl I Ar EXCL_PAT
71 remove rc files that match
72 .Ar EXCL_PAT
73 despite being excluded by the
74 .Fl x
75 flag or a setting in
76 .Xr rcrc 5 .
77 This can be repeated with additional patterns. See
78 .Xr lsrc 1 ,
79 .Sx EXCLUDE PATTERN ,
80 for more details.
81 .It Fl K
82 skip pre- and post-hooks
83 .It Fl k
84 run pre- and post-hooks. This is the default.
85 .It Fl q
86 decrease verbosity
87 .It Fl S Ar EXCL_PAT
88 when removing dotfiles, any file that matches
89 .Ar EXCL_PAT
90 should be treated as a file that was symlinked, even if it is a
91 directory. This can be repeated.
92 .It Fl s Ar EXCL_PAT
93 when removing dotfiles, any directory that matches
94 .Ar EXCL_PAT
95 should be recurred upon like normal. This is the default, and is the opposite of
96 .Fl S .
97 This can be repeated.
98 .It Fl t Ar TAG
99 remove dotfiles according to
100 .Ar TAG
101 .It Fl U Ar EXCL_PAT
102 any rc file or directory that matches
103 .Ar EXCL_PAT
104 is considered to have been installed without a leading dot when removing them.
105 Must be specified for rc files or directories that were indeed installed
106 without a leading dot. This can be repeated. See the
107 documentation of the
108 .Fl U
109 option in
110 .Xr lsrc 1
111 for more information.
112 .It Fl u Ar EXCL_PAT
113 any rc file or directory that matches
114 .Ar EXCL_PAT
115 is considered to have been installed with a leading dot when removing them.
116 This is the default, and is the opposite of
117 .Fl U .
118 This can be repeated. See the
119 documentation of the
120 .Fl u
121 option in
122 .Xr lsrc 1
123 for more information.
124 .It Fl v
125 increase verbosity. This can be repeated for extra verbosity.
126 .It Fl V
127 show the version number.
128 .It Fl x Ar EXCL_PAT
129 do not remove rc files that match
130 .Ar EXCL_PAT .
131 This can be repeated with additional patterns. See
132 .Xr lsrc 1 ,
133 .Sx EXCLUDE PATTERN ,
134 for more details.
135 .It Ar files
136 only remove the specified file(s)
137 .El
138 .
139 .Sh ENVIRONMENT
140 .Bl -tag -width ".Ev RCRC"
141 .It Ev RCRC
142 User configuration file. Defaults to
143 .Pa ~/.rcrc .
144 .El
145 .Sh FILES
146 .Pa ~/.rcrc
147 .Sh EXAMPLES
148 .Dl rcdn -v
149 .Dl rcdn zshrc
150 .Dl rcdn -t python
151 .Dl rcdn -d ~/corporate-dotfiles
152 .Dl rcdn -x '*:.zshrc'
153 .Sh SEE ALSO
154 .Xr lsrc 1 ,
155 .Xr mkrc 1 ,
156 .Xr rcup 1 ,
157 .Xr rcrc 5 ,
158 .Xr rcm 7
159 .Sh AUTHORS
160 .Nm
161 is maintained by
162 .An "Mike Burns" Aq Mt [email protected]
163 and
164 .Lk http://thoughtbot.com thoughtbot