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/rcrc.5 | |
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/rcrc.5')
-rw-r--r-- | man/rcrc.5 | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -17,30 +17,36 @@ .Sh DESCRIPTION The rcm dotfile manager can be configured using a .Pa .rcrc -file in your home directory. The format is POSIX shell, and it is +file in your home directory. The format is POSIX shell. It is sourced in by the .Xr lsrc 1 , .Xr mkrc 1 , +.Xr rcdn 1 , and .Xr rcup 1 programs. .Pp It supports these variables: .Bl -tag -.It Va TAGS -the default tags used by -.Nm rcup .It Va DOTFILES_DIRS the source directories for dotfiles. The first in the list is the canonical source. The default value is .Li ~/.dotfiles +.It Va EXCLUDES +a space-separated list of exclude patterns. Exclude patterns are +explained in detail in +.Xr lsrc 1 +under the section +.Sx EXCLUDE PATTERN . +.It Va TAGS +the default tags. .El .Sh FILES -.Pa ~/.dotfiles .Pa ~/.rcrc .Sh EXAMPLES -.Dl TAGS="freebsd development email git laptop gmail notmuch" .Dl DOTFILES_DIRS="/home/mike/.dotfiles /usr/share/dotfiles" +.Dl EXCLUDES="irbrc *:*emacs* dotfiles:python*" +.Dl TAGS="freebsd development email git laptop gmail notmuch" .Sh SEE ALSO .Xr lsrc 1 , .Xr mkrc 1 , |