RCDN(1)
๐ RCDN(1) โ the rcdn page, bestie edition ๐
General Commands Manual ยท the one where we YEET the dotfiles
โจ NAME โจ
rcdn โ remove dotfiles as managed by rcm
okay so. you know how rcup puts all your cute little dotfiles in place? rcdn is the undo button. it removes them. it's giving reverse card. ๐
๐ธ SYNOPSIS ๐ธ
rcdn [-hKkqVv] [-B hostname] [-d dir] [-I excl_pat] [-S excl_pat]
[-s excl_pat] [-t tag] [-U excl_pat] [-u excl_pat] [-x excl_pat]
[files ...]
๐ฆ DESCRIPTION ๐ฆ
So. This program will remove all the rc files that the rcm(7) suite knows about. All of them. Every single one it's aware of. You can narrow that down with the -t and -d flags if you're not in a full-send mood. ๐
The files that get removed are symlinks. However, the COPY_ALWAYS setting in rcrc(5) modifies this. So:
- If a rc file is not a symlink but an ancestor directory is โ that directory is the one that gets removed.
- If a rc file is not a symlink but is listed in
COPY_ALWAYSโ the file itself gets removed.
The rcdn program will run hooks before and after removing files, if these hooks exist. Hooks are executable programs inside the dotfiles directory, with the following names:
hooks/pre-downhooks/post-down
These hooks are run each time rcdn is run and therefore must be idempotent. no cap. if your hook isn't idempotent it's gonna have a bad time. ๐ญ
Hooks will be executed one at a time, sorted alphabetically. For instance, hooks/pre-down/animals will run before hooks/pre-down/aquariums, and hooks/pre-down/4-eyes will run before hooks/post-down/2-u-nothing-compares.
๐ OPTIONS ๐
-B HOSTNAMEโ treathost-HOSTNAMEas the host-specific directory instead of computing it. you don't gotta do the math, we did it for you. ๐งฎ-d DIRโ remove rc files from theDIR. This can be specified multiple times. (stack 'em up, queen ๐)-hโ show usage instructions.-I EXCL_PATโ remove rc files that matchEXCL_PATdespite being excluded by the-xflag or a setting inrcrc(5). This can be repeated with additional patterns. Seelsrc(1), โEXCLUDE PATTERNโ, for more details. (this is the override one. the "actually, no" one. ๐)-Kโ skip pre- and post-hooks. no hooks today, we're booked. ๐-kโ run pre- and post-hooks. This is the default.-qโ decrease verbosity. shhh. ๐คซ-S EXCL_PATโ when removing dotfiles, any file that matchesEXCL_PATshould be treated as a file that was symlinked, even if it is a directory. This can be repeated.-s EXCL_PATโ when removing dotfiles, any directory that matchesEXCL_PATshould be recurred upon like normal. This is the default, and is the opposite of-S. This can be repeated.-t TAGโ remove dotfiles according toTAG. ๐ท๏ธ-U EXCL_PATโ any rc file or directory that matchesEXCL_PATis considered to have been installed without a leading dot when removing them. Must be specified for rc files or directories that were indeed installed without a leading dot. This can be repeated. See the documentation of the-Uoption inlsrc(1)for more information.-u EXCL_PATโ any rc file or directory that matchesEXCL_PATis considered to have been installed with a leading dot when removing them. This is the default, and is the opposite of-U. This can be repeated. See the documentation of the-uoption inlsrc(1)for more information.-vโ increase verbosity. This can be repeated for extra verbosity. (spam that-v, bestie, go-vvvvif you're feeling unhinged โจ)-Vโ show the version number.-x EXCL_PATโ do not remove rc files that matchEXCL_PAT. This can be repeated with additional patterns. Seelsrc(1), โEXCLUDE PATTERNโ, for more details. (the leave it alone flag ๐)filesโ only remove the specified file(s)
๐ ENVIRONMENT ๐
RCRCโ User configuration file. Defaults to~/.rcrc.
๐ FILES ๐
~/.rcrc
โญ EXAMPLES โญ
like. here's the vibe. run these:
rcdn -v
rcdn zshrc
rcdn -t python
rcdn -d ~/corporate-dotfiles
rcdn -x '*:.zshrc'
๐ SEE ALSO ๐
lsrc(1), mkrc(1), rcup(1), rcrc(5), rcm(7)
(go read rcup(1) if you wanna do the opposite of this. balance. ๐ง)
๐ซถ AUTHORS ๐ซถ
rcdn is maintained by Mike Burns <mburns@thoughtbot.com> and thoughtbot: http://thoughtbot.com
Debian ยท August 2, 2013
and that's the whole page, bestie. ๐ shipped from Debian, dated August 2, 2013, and it ate. go forth and rcdn responsibly. periodt. โจ๐๐ฆ
๐ฆ where this page comes from
- alpine 3.24: rcm-doc 1.3.6-r0 ยท BSD-3-Clause
- epel 9: rcm 1.3.6-1.el9 ยท BSD
- fedora 43: rcm 1.3.6-9.fc43 ยท LicenseRef-Callaway-BSD
- fedora 44: rcm 1.3.6-10.fc44 ยท LicenseRef-Callaway-BSD
- nixos 26.05: rcm 1.3.6
- nixpkgs unstable: rcm 1.3.6
- opensuse-leap 16.0: rcm 1.3.6-bp160.1.9 ยท BSD-3-Clause
- ubuntu stonking: rcm 1.3.6-2 ยท BSD-3-Clause
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms