From 8d7f6c94a3458328b339b6582592b6c1fecec950 Mon Sep 17 00:00:00 2001 From: Mike Burns Date: Sun, 11 Aug 2013 17:29:01 +0200 Subject: Add the COPY_ALWAYS option The suite now honors the `COPY_ALWAYS` option in rcrc(5). This can be set to a space-separated list of file globs. Any file matching a glob is copied instead of symlinked. This is handy both for secure programs (`netrc`, `ssh/id_*`) and for programs that oddly re-write files (`weechat/*`). To always copy everything, use the `*` glob. This is reflected throughout the suite as follows: * lsrc now has a `-F` option which shows a symbol to indicate whether it is a symlink (`@`) or a copy (`X`). * rcdn only removes symlinks unless the file under question matches a `COPY_ALWAYS` glob, in which case it is removed regardless of whether it is a symlink. * rcup will copy instead of symlinking any file that matches any `COPY_ALWAYS` glob. --- man/lsrc.1 | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'man/lsrc.1') diff --git a/man/lsrc.1 b/man/lsrc.1 index f8e675c..b733873 100644 --- a/man/lsrc.1 +++ b/man/lsrc.1 @@ -6,7 +6,7 @@ .Nd show configuration files .Sh SYNOPSIS .Nm lsrc -.Op Fl vq +.Op Fl Fvq .Op Fl d Ar dir .Op Fl I Ar excl_pat .Op Fl t Ar tag @@ -25,12 +25,21 @@ section, for details on the directory layout. It supports these options: . .Bl -tag -.It Fl t Ar TAG -list dotfiles according to TAG -. .It Fl d Ar DIR list dotfiles from the DIR. This can be specified multiple times. . +.It Fl F +show symbols next to each file indicating status information. Supported +symbols are +.Li @ +which indicates that the file is a symlink, and +.Li X +to indicate that the file is a copy. More details on copied files can be +found in +.Xr rcrc 5 , +under the documentation about +.Va COPY_ALWAYS . +. .It Fl I Ar excl_pat include the files that match the given pattern. This is applied after any @@ -40,6 +49,10 @@ options. It uses the same pattern language as more details are in the .Sx EXCLUDE PATTERN section. +. +.It Fl t Ar TAG +list dotfiles according to TAG +. .It Fl v increase verbosity. This can be repeated for extra verbosity. . -- cgit v1.2.3