diff options
author | Joris Vankerschaver <jvankerschaver@enthought.com> | 2016-07-31 21:55:55 +0100 |
---|---|---|
committer | Joris Vankerschaver <jvankerschaver@enthought.com> | 2016-10-04 17:51:01 +0100 |
commit | 182acbbb64425bf95008cb6d42d266f6185032c9 (patch) | |
tree | 79ae2e75985a455ce473fbde3361ff4dd6a45eee /bin | |
parent | c171ca8d839e0cd3d67d754b442c38865b6a8c4f (diff) | |
download | stow-182acbbb64425bf95008cb6d42d266f6185032c9.tar.gz |
Special processing for dotfiles
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/stow.in | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/bin/stow.in b/bin/stow.in index ec83f59..6e5673f 100755 --- a/bin/stow.in +++ b/bin/stow.in @@ -214,6 +214,22 @@ stowed to another package. Force stowing files beginning with this Perl regex if the file is already stowed to another package. +=item --dotfiles + +Enable special handling for "dotfiles" (files or folders whose name +begins with a period) in the package directory. If this option is +enabled, Stow will add a preprocessing step for each file or folder +whose name begins with "dot-", and replace the "dot-" prefix in the +name by a period (.). This is useful when Stow is used to manage +collections of dotfiles, to avoid having a package directory full of +hidden files. + +For example, suppose we have a package containing two files, +F<stow/dot-bashrc> and F<stow/dot-emacs.d/init.el>. With this option, +Stow will create symlinks from F<.bashrc> to F<stow/dot-bashrc> and +from F<.emacs.d/init.el> to F<stow/dot-emacs.d/init.el>. Any other +files, whose name does not begin with "dot-", will be processed as usual. + =item -V =item --version @@ -481,7 +497,7 @@ sub process_options { \%options, 'verbose|v:+', 'help|h', 'simulate|n|no', 'version|V', 'compat|p', 'dir|d=s', 'target|t=s', - 'adopt', 'no-folding', + 'adopt', 'no-folding', 'dotfiles', # clean and pre-compile any regex's at parse time 'ignore=s' => |