From 8d6bc1fc7b14d26589a4789dc9da291ef404bd61 Mon Sep 17 00:00:00 2001 From: Christopher Koch Date: Wed, 23 Jul 2014 00:03:27 +0200 Subject: Support rc files without leading dots This adds the `-U` option to lsrc(1), rcup(1), and rcdn(1) commands; its argument is an exclusion pattern. Any file matching this pattern is symlinked without the leading dot. There is also a `-u` option to undo a `-U`. The `UNDOTTED` setting in rcrc(5) can be used to set it permanently. The mkrc(1) command has `-U` and `-u` flags. They take no argument. --- man/lsrc.1 | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'man/lsrc.1') diff --git a/man/lsrc.1 b/man/lsrc.1 index a05dfe8..b63b8a7 100644 --- a/man/lsrc.1 +++ b/man/lsrc.1 @@ -13,6 +13,8 @@ .Op Fl S Ar excl_pat .Op Fl s Ar excl_pat .Op Fl t Ar tag +.Op Fl U Ar excl_pat +.Op Fl u Ar excl_pat .Op Fl x Ar excl_pat .Op files ... .Sh DESCRIPTION @@ -89,6 +91,25 @@ protect it from your shell. .It Fl t Ar TAG list dotfiles according to TAG . +.It Fl U Ar excl_pat +the rc files or directories matching this pattern will not be symlinked or +created with a leading dot. See +.Sx EXCLUDE PATTERN +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 u Ar excl_pat +if an rc file or directory matches the given pattern, it must be dotted. See +.Sx EXCLUDE PATTERN +for more details. This is the opposite of the +.Fl U +option, and can be used to undo it or the +.Va UNDOTTED +setting in your +.Xr rcrc 5 +configuration. This option can be repeated. You may need to quote the +pattern to prevent the shell from swallowing the glob. +. .It Fl V show the version number. . -- cgit v1.2.3