From 82f59f31ceef20a262846fc1912de86b9d2df677 Mon Sep 17 00:00:00 2001 From: Mike Burns Date: Fri, 30 May 2014 16:53:57 +0200 Subject: Allow the user to override SYMLINK_DIRS with -s This adds a `-s` that can be used to override the `SYMLINK_DIRS` config, or the `-S` flag, to lsrc(1), mkrc(1), rcup(1), and rcdn(1). The `-s` flag is the opposite of -S: any argument, if it is a directory, is not symlinked but instead recurred down. --- man/lsrc.1 | 14 ++++++++++++++ man/rcdn.1 | 7 +++++++ man/rcup.1 | 9 +++++++++ 3 files changed, 30 insertions(+) (limited to 'man') diff --git a/man/lsrc.1 b/man/lsrc.1 index 97fb536..a05dfe8 100644 --- a/man/lsrc.1 +++ b/man/lsrc.1 @@ -11,6 +11,7 @@ .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 x Ar excl_pat .Op files ... @@ -72,6 +73,19 @@ symlink the directories that match the given pattern. See for more details. This option can be repeated. You may need to quote the pattern to prevent the shell from swallowing the glob. . +.It Fl s Ar excl_pat +if a directory matches the given pattern, recur inside of it instead of +symlinking. See +.Sx EXCLUDE PATTERN +for more details. This is the opposite of the +.Fl S +option, and can be used to undo it or the +.Va SYMLINK_DIRS +setting in your +.Xr rcrc 5 +configuration. It can be repeated, and the pattern may need to be quoted to +protect it from your shell. +. .It Fl t Ar TAG list dotfiles according to TAG . diff --git a/man/rcdn.1 b/man/rcdn.1 index 6ac8a2f..7abc4c5 100644 --- a/man/rcdn.1 +++ b/man/rcdn.1 @@ -11,6 +11,7 @@ .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 x Ar excl_pat .Op Ar files ... @@ -77,6 +78,12 @@ 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 diff --git a/man/rcup.1 b/man/rcup.1 index 684b1fc..9d4ee55 100644 --- a/man/rcup.1 +++ b/man/rcup.1 @@ -11,6 +11,7 @@ .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 x Ar excl_pat .Op Ar files ... @@ -69,6 +70,14 @@ any rc file that matches .Ar EXCL_PAT is installed as if it were a file (using a symlink) instead of as if it were a directory (by making a directory). This option can be repeated. +.It Fl s Ar EXCL_PAT +any file that matches +.Ar EXCL_PAT +is installed as normal, in accordance with the +.Sx ALGORITHM +section below. This is the opposite of +.Fl S . +This option can be repeated. .It Fl t Ar TAG install dotfiles according to .Ar TAG -- cgit v1.2.3