1RCDN(1) BSD General Commands Manual RCDN(1)
2
4 rcdn — remove dotfiles as managed by rcm
5
7 rcdn [-hKkqVv] [-B hostname] [-d dir] [-I excl_pat] [-S excl_pat]
8 [-s excl_pat] [-t tag] [-U excl_pat] [-u excl_pat] [-x excl_pat]
9 [files ...]
10
12 This program will remove all the rc files that the rcm(7) suite knows
13 about. This can be further controlled with the -t and -d flags.
14
15 The files that are removed are symlinks. However, the COPY_ALWAYS setting
16 in rcrc(5) modifies this. If a rc file is not a symlink but an ancestor
17 directory is, that directory is removed. If a rc file is not a symlink
18 but is listed in COPY_ALWAYS the file is removed.
19
20 The rcdn program will run hooks before and after removing files, if these
21 hooks exist. Hooks are executable programs inside the dotfiles directory,
22 with the following names: hooks/pre-down and hooks/post-down. These
23 hooks are run each time rcdn is run and therefore must be idempotent.
24
25 Hooks will be executed one at a time, sorted alphabetically. For
26 instance, hooks/pre-down/animals will run before
27 hooks/pre-down/aquariums, and hooks/pre-down/4-eyes will run before
28 hooks/post-down/2-u-nothing-compares.
29
30 -B HOSTNAME treat host-HOSTNAME as the host-specific directory instead
31 of computing it
32
33 -d DIR remove rc files from the DIR. This can be specified multi‐
34 ple times.
35
36 -h show usage instructions.
37
38 -I EXCL_PAT remove rc files that match EXCL_PAT despite being excluded
39 by the -x flag or a setting in rcrc(5). This can be
40 repeated with additional patterns. See lsrc(1), EXCLUDE
41 PATTERN, for more details.
42
43 -K skip pre- and post-hooks
44
45 -k run pre- and post-hooks. This is the default.
46
47 -q decrease verbosity
48
49 -S EXCL_PAT when removing dotfiles, any file that matches EXCL_PAT
50 should be treated as a file that was symlinked, even if it
51 is a directory. This can be repeated.
52
53 -s EXCL_PAT when removing dotfiles, any directory that matches EXCL_PAT
54 should be recurred upon like normal. This is the default,
55 and is the opposite of -S. This can be repeated.
56
57 -t TAG remove dotfiles according to TAG
58
59 -U EXCL_PAT any rc file or directory that matches EXCL_PAT is considered
60 to have been installed without a leading dot when removing
61 them. Must be specified for rc files or directories that
62 were indeed installed without a leading dot. This can be
63 repeated. See the documentation of the -U option in lsrc(1)
64 for more information.
65
66 -u EXCL_PAT any rc file or directory that matches EXCL_PAT is considered
67 to have been installed with a leading dot when removing
68 them. This is the default, and is the opposite of -U. This
69 can be repeated. See the documentation of the -u option in
70 lsrc(1) for more information.
71
72 -v increase verbosity. This can be repeated for extra ver‐
73 bosity.
74
75 -V show the version number.
76
77 -x EXCL_PAT do not remove rc files that match EXCL_PAT. This can be
78 repeated with additional patterns. See lsrc(1), EXCLUDE
79 PATTERN, for more details.
80
81 files only remove the specified file(s)
82
84 RCRC User configuration file. Defaults to ~/.rcrc.
85
87 ~/.rcrc
88
90 rcdn -v
91 rcdn zshrc
92 rcdn -t python
93 rcdn -d ~/corporate-dotfiles
94 rcdn -x '*:.zshrc'
95
97 lsrc(1), mkrc(1), rcup(1), rcrc(5), rcm(7)
98
100 rcdn is maintained by Mike Burns <mburns@thoughtbot.com> and thoughtbot:
101 http://thoughtbot.se
102
103BSD August 2, 2013 BSD