<commit_before>.Dd August 2, 2013
.Dt RCDN 1
.Os
.Sh NAME
.Nm rcdn
.Nd remove dotfiles as managed by rcm
.Sh SYNOPSIS
.Nm rcdn
.Op Fl hKkqVv
.Op Fl B Ar hostname
.Op Fl d Ar dir
.Op Fl I Ar excl_pat
.Op Fl S Ar excl_pat
.Op Fl s Ar excl_pat
.Op Fl t Ar tag
.Op Fl U Ar excl_pat
.Op Fl u Ar excl_pat
.Op Fl x Ar excl_pat
.Op Ar files ...
.Sh DESCRIPTION
This program will remove all the rc files that the
.Xr rcm 7
suite knows about. This can be further controlled with the
.Fl t
and
.Fl d
flags.
.Pp
The files that are removed are symlinks. However, the
.Va COPY_ALWAYS
setting in
.Xr rcrc 5
modifies this. If a rc file is not a symlink but an ancestor directory
is, that directory is removed. If a rc file is not a symlink but is
listed in
.Va COPY_ALWAYS
the file is removed.
.Pp
The
.Nm
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:
.Pa hooks/pre-down
and
.Pa hooks/post-down .
These hooks are run each time
.Nm
is run and therefore must be idempotent.
.
.Bl -tag -width "-I EXCL_PAT"
.It Fl B Ar HOSTNAME
treat
.Pa host-HOSTNAME
as the host-specific directory instead of computing it
.It Fl d Ar DIR
remove rc files from the
.Ar DIR .
This can be specified multiple times.
.It Fl h
show usage instructions.
.It Fl I Ar EXCL_PAT
remove rc files that match
.Ar EXCL_PAT
despite being excluded by the
.Fl x
flag or a setting in
.Xr rcrc 5 .
This can be repeated with additional patterns. See
.Xr lsrc 1 ,
.Sx EXCLUDE PATTERN ,
for more details.
.It Fl K
skip pre- and post-hooks
.It Fl k
run pre- and post-hooks. This is the default.
.It Fl q
decrease verbosity
.It Fl S Ar EXCL_PAT
when removing dotfiles, any file that matches
.Ar EXCL_PAT
should be treated as a file that was symlinked, even if it is a
directory. This can be repeated.
.It Fl s Ar EXCL_PAT
when removing dotfiles, any directory that matches
.Ar EXCL_PAT
should be recurred upon like normal. This is the default, and is the opposite of
.Fl S .
This can be repeated.
.It Fl t Ar TAG
remove dotfiles according to
.Ar TAG
.It Fl U Ar EXCL_PAT
any rc file or directory that matches
.Ar EXCL_PAT
is 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
.Fl U
option in
.Xr lsrc 1
for more information.
.It Fl u Ar EXCL_PAT
any rc file or directory that matches
.Ar EXCL_PAT
is considered to have been installed with a leading dot when removing them.
This is the default, and is the opposite of
.Fl U .
This can be repeated. See the
documentation of the
.Fl u
option in
.Xr lsrc 1
for more information.
.It Fl v
increase verbosity. This can be repeated for extra verbosity.
.It Fl V
show the version number.
.It Fl x Ar EXCL_PAT
do not remove rc files that match
.Ar EXCL_PAT .
This can be repeated with additional patterns. See
.Xr lsrc 1 ,
.Sx EXCLUDE PATTERN ,
for more details.
.It Ar files
only remove the specified file(s)
.El
.
.Sh ENVIRONMENT
.Bl -tag -width ".Ev RCRC"
.It Ev RCRC
User configuration file. Defaults to
.Pa ~/.rcrc .
.El
.Sh FILES
.Pa ~/.rcrc
.Sh EXAMPLES
.Dl rcdn -v
.Dl rcdn zshrc
.Dl rcdn -t python
.Dl rcdn -d ~/corporate-dotfiles
.Dl rcdn -e '*:.zshrc'
.Sh SEE ALSO
.Xr lsrc 1 ,
.Xr mkrc 1 ,
.Xr rcup 1 ,
.Xr rcrc 5 ,
.Xr rcm 7
.Sh AUTHORS
.Nm
is maintained by
.An "<NAME>" Aq Mt <EMAIL>
and
.Lk http://thoughtbot.se thoughtbot<commit_msg>Fix faulty flag in the `rcdn` man page<commit_after>.Dd August 2, 2013
.Dt RCDN 1
.Os
.Sh NAME
.Nm rcdn
.Nd remove dotfiles as managed by rcm
.Sh SYNOPSIS
.Nm rcdn
.Op Fl hKkqVv
.Op Fl B Ar hostname
.Op Fl d Ar dir
.Op Fl I Ar excl_pat
.Op Fl S Ar excl_pat
.Op Fl s Ar excl_pat
.Op Fl t Ar tag
.Op Fl U Ar excl_pat
.Op Fl u Ar excl_pat
.Op Fl x Ar excl_pat
.Op Ar files ...
.Sh DESCRIPTION
This program will remove all the rc files that the
.Xr rcm 7
suite knows about. This can be further controlled with the
.Fl t
and
.Fl d
flags.
.Pp
The files that are removed are symlinks. However, the
.Va COPY_ALWAYS
setting in
.Xr rcrc 5
modifies this. If a rc file is not a symlink but an ancestor directory
is, that directory is removed. If a rc file is not a symlink but is
listed in
.Va COPY_ALWAYS
the file is removed.
.Pp
The
.Nm
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:
.Pa hooks/pre-down
and
.Pa hooks/post-down .
These hooks are run each time
.Nm
is run and therefore must be idempotent.
.
.Bl -tag -width "-I EXCL_PAT"
.It Fl B Ar HOSTNAME
treat
.Pa host-HOSTNAME
as the host-specific directory instead of computing it
.It Fl d Ar DIR
remove rc files from the
.Ar DIR .
This can be specified multiple times.
.It Fl h
show usage instructions.
.It Fl I Ar EXCL_PAT
remove rc files that match
.Ar EXCL_PAT
despite being excluded by the
.Fl x
flag or a setting in
.Xr rcrc 5 .
This can be repeated with additional patterns. See
.Xr lsrc 1 ,
.Sx EXCLUDE PATTERN ,
for more details.
.It Fl K
skip pre- and post-hooks
.It Fl k
run pre- and post-hooks. This is the default.
.It Fl q
decrease verbosity
.It Fl S Ar EXCL_PAT
when removing dotfiles, any file that matches
.Ar EXCL_PAT
should be treated as a file that was symlinked, even if it is a
directory. This can be repeated.
.It Fl s Ar EXCL_PAT
when removing dotfiles, any directory that matches
.Ar EXCL_PAT
should be recurred upon like normal. This is the default, and is the opposite of
.Fl S .
This can be repeated.
.It Fl t Ar TAG
remove dotfiles according to
.Ar TAG
.It Fl U Ar EXCL_PAT
any rc file or directory that matches
.Ar EXCL_PAT
is 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
.Fl U
option in
.Xr lsrc 1
for more information.
.It Fl u Ar EXCL_PAT
any rc file or directory that matches
.Ar EXCL_PAT
is considered to have been installed with a leading dot when removing them.
This is the default, and is the opposite of
.Fl U .
This can be repeated. See the
documentation of the
.Fl u
option in
.Xr lsrc 1
for more information.
.It Fl v
increase verbosity. This can be repeated for extra verbosity.
.It Fl V
show the version number.
.It Fl x Ar EXCL_PAT
do not remove rc files that match
.Ar EXCL_PAT .
This can be repeated with additional patterns. See
.Xr lsrc 1 ,
.Sx EXCLUDE PATTERN ,
for more details.
.It Ar files
only remove the specified file(s)
.El
.
.Sh ENVIRONMENT
.Bl -tag -width ".Ev RCRC"
.It Ev RCRC
User configuration file. Defaults to
.Pa ~/.rcrc .
.El
.Sh FILES
.Pa ~/.rcrc
.Sh EXAMPLES
.Dl rcdn -v
.Dl rcdn zshrc
.Dl rcdn -t python
.Dl rcdn -d ~/corporate-dotfiles
.Dl rcdn -x '*:.zshrc'
.Sh SEE ALSO
.Xr lsrc 1 ,
.Xr mkrc 1 ,
.Xr rcup 1 ,
.Xr rcrc 5 ,
.Xr rcm 7
.Sh AUTHORS
.Nm
is maintained by
.An "<NAME>" Aq Mt <EMAIL>
and
.Lk http://thoughtbot.se thoughtbot
{'fraction_non_alphanumeric': 0.059447983014861996, 'fraction_numerical': 0.005095541401273885, 'mean_word_length': 3.2159904534606207, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3563843', 'n_tokens_mistral': 2534, 'n_tokens_neox': 2422, 'n_words': 1306}