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/rcdn.1 | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'man/rcdn.1') diff --git a/man/rcdn.1 b/man/rcdn.1 index 21261fd..10543e9 100644 --- a/man/rcdn.1 +++ b/man/rcdn.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 Ar files ... .Sh DESCRIPTION @@ -87,6 +89,29 @@ This can be repeated. .It Fl t Ar TAG remove dotfiles according to .Ar TAG +.It Fl U Ar EXCL_PAT +any rc file or directory that matches +.Ar EXCL_PAT +is considered to have been installed without a leading dot when removing them. +Must be specified for rc files or directories that were indeed installed +without a leading dot. This can be repeated. See the +documentation of the +.Fl U +option in +.Xr lsrc 1 +for more information. +.It Fl u Ar EXCL_PAT +any rc file or directory that matches +.Ar EXCL_PAT +is considered to have been installed with a leading dot when removing them. +This is the default, and is the opposite of +.Fl U . +This can be repeated. See the +documentation of the +.Fl u +option in +.Xr lsrc 1 +for more information. .It Fl v increase verbosity. This can be repeated for extra verbosity. .It Fl V -- cgit v1.2.3