diff options
author | Mike Burns <mike@mike-burns.com> | 2013-08-04 10:35:14 -0400 |
---|---|---|
committer | Mike Burns <mike@mike-burns.com> | 2013-08-05 04:21:21 +0200 |
commit | 63b50643b0ffd287d0070e494625056a05081ce8 (patch) | |
tree | 0ee843065deed78edf646f11f8d46ff28c6964ba /man/rcdn.1 | |
parent | 17c803d03d20f84cb37873e05d1539dbe7d43a77 (diff) |
Introduce exclusion patterns
The lsrc(1), rcup(1), and rcdn(1) commands now take any number of `-e`
flags, used to specify an exclusion pattern. This can also be controlled
via rcrc(5), the `EXCLUDES` variable.
An exclusion pattern specifies a file glob to skip. In the case of
lsrc(1), any file matching the glob is not listed; in rcup(1) it is not
symlinked; and in rcdn(1) it is not removed.
The file glob can be preceded by the name of a dotfiles directory
(separated from the file glob by a colon) to increase the specificity.
Useful for:
rcdn -e rcrc
rcup -d work-dotfiles -e bashrc
rcup -d ~/.dotfiles -d wife-dotfiles -d sys-dotfiles -e wife-dotfiles:tigrc
Diffstat (limited to 'man/rcdn.1')
-rw-r--r-- | man/rcdn.1 | 21 |
1 files changed, 14 insertions, 7 deletions
@@ -19,17 +19,24 @@ and .Fl d flags. .Bl -tag -.It Fl v -increase verbosity. This can be repeated for extra verbosity. +.It Fl d Ar DIR +remove rc files from the +.Ar DIR . +This can be specified multiple times. +.It Fl e 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 Fl q decrease verbosity .It Fl t Ar TAG remove dotfiles according to .Ar TAG -.It Fl d Ar DIR -remove dotfiles from the -.Ar DIR . -This can be specified multiple times. +.It Fl v +increase verbosity. This can be repeated for extra verbosity. .It Ar files only remove the specified file(s) .El @@ -39,8 +46,8 @@ only remove the specified file(s) .Dl rcdn zshrc .Dl rcdn -t python .Dl rcdn -d ~/corporate-dotfiles +.Dl rcdn -e '*:.zshrc' .Sh FILES -.Pa ~/.dotfiles .Pa ~/.rcrc .Sh SEE ALSO .Xr lsrc 1 , |