mirror of
1
0
Fork 0
dotbot/dotbot
Robin Schneider 138fdbc8d7
Add 'canonicalize-path' option to link
Dotbot had a hardcoded behaviour that the BASEDIR was always passed to
os.path.realpath which "returns the canonical path of the specified
filename, eliminating any symbolic links encountered in the path".

This might not always be desirable so this commit makes it configurable.

The use case where `canonicalize-path` comes in handy is the following:
You want to provide dotfiles in the Filesystem Hierarchy Standard under
`/usr/local/share/ypid_dotfiles/`. Now you want to provide
`.config/dotfiles` as a default in `/etc/skel`. When you now
pre-configure `/etc/skel` by running dotbot in it set has HOME, dotfiles
will refer to `/usr/local/share/ypid_dotfiles/` and not
`/etc/skel/.config/dotfiles` which does not look nice.

This is related to but not the same as the `relative` parameter used
with link commands.
2020-01-03 22:35:13 +01:00
..
messenger Add option --no-color to suppress colorization of output 2018-10-06 16:08:26 -07:00
plugins Add 'canonicalize-path' option to link 2020-01-03 22:35:13 +01:00
util Add plugin loader 2016-02-06 15:14:35 -05:00
__init__.py Release 1.16.0 2019-10-12 12:02:40 -04:00
cli.py Add 'create' directive to create directories 2019-10-12 11:55:09 -04:00
config.py Fix compatibility with Python 3 2016-01-15 01:21:16 -05:00
context.py Add 'canonicalize-path' option to link 2020-01-03 22:35:13 +01:00
dispatcher.py Add 'canonicalize-path' option to link 2020-01-03 22:35:13 +01:00
plugin.py Add default options 2016-03-03 09:42:50 -05:00