From 3700be9ce6802653df30c413179d93316bf0b291 Mon Sep 17 00:00:00 2001 From: Pablo Olmos de Aguilera Corradini and Mike Burns Date: Sun, 27 Oct 2013 17:16:30 -0300 Subject: Force some directories to be symlinks Typically a directory structure is copied instead of symlinked, while files are symlinked. However, some cases require symlinked dirs: git submodules, vim plugins, and so on. This introduces a `SYMLINK_DIRS` option for rcrc(5) that takes a space-separated list of "exclude patterns". Any directory matching these patterns is symlinked. This also introduces a `-S` argument for lsrc(1), rcup(1), and rcdn(1). This argument takes a pattern, for one-off directory symlinking. It can be repeated. This also introduces `-S` and `-s` for mkrc(1). `-S` will re-install the files as symlinks, and `-s` will not. This does work with `-C`, though perhaps unintuitively - we don't know what the user means in this case. However, it will not crash. Bug: `-s` does not work right if `SYMLINK_DIRS` is set. Bug #36 addresses this. --- man/rcup.1 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'man/rcup.1') diff --git a/man/rcup.1 b/man/rcup.1 index 3304436..41e25fd 100644 --- a/man/rcup.1 +++ b/man/rcup.1 @@ -56,6 +56,11 @@ run pre- and post-hooks (see for more details on hooks). This is the default. .It Fl K skip pre- and post-hooks +.It Fl S Ar EXCL_PAT +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 t Ar TAG install dotfiles according to .Ar TAG -- cgit v1.2.3