summaryrefslogtreecommitdiff
path: root/man/rcdn.1
blob: 6c641c9442946f498b3d1823a59d5438b183a434 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
.Dd August 2, 2013
.Dt RCDN 1
.Os
.Sh NAME
.Nm rcdn
.Nd remove dotfiles
.Sh SYNOPSIS
.Nm rcdn
.Op Fl vq
.Op Fl d Ar dir
.Op Fl I Ar excl_pat
.Op Fl t Ar tag
.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.
.
.Bl -tag
.It Fl d Ar DIR
remove rc files from the
.Ar DIR .
This can be specified multiple times.
.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 q
decrease verbosity
.It Fl t Ar TAG
remove dotfiles according to
.Ar TAG
.It Fl v
increase verbosity. This can be repeated for extra verbosity.
.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 EXAMPLES
.Dl rcdn -v
.Dl rcdn zshrc
.Dl rcdn -t python
.Dl rcdn -d ~/corporate-dotfiles
.Dl rcdn -e '*:.zshrc'
.Sh FILES
.Pa ~/.rcrc
.Sh SEE ALSO
.Xr lsrc 1 ,
.Xr mkrc 1 ,
.Xr rcup 1 ,
.Xr rcrc 5 ,
.Xr rcm 7
.Sh AUTHORS
.An "Mike Burns" Aq mike@mike-burns.com