1
0
Fork 0
mirror of synced 2024-06-24 01:41:09 -04:00
dotbot/dotbot
Robin Schneider edc87576ce
Add --no-realpath-base switch to keep symbolic links in BASEDIR
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
using a command line flag, `--no-realpath-base`.

The use case where `--no-realpath-base` 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.
2018-05-21 18:11:28 +02:00
..
messenger Fix compatibility 2015-01-26 10:36:36 -05:00
util Add plugin loader 2016-02-06 15:14:35 -05:00
__init__.py Add plugin loader 2016-02-06 15:14:35 -05:00
cli.py Add --no-realpath-base switch to keep symbolic links in BASEDIR 2018-05-21 18:11:28 +02:00
config.py Fix compatibility with Python 3 2016-01-15 01:21:16 -05:00
context.py Add default options 2016-03-03 09:42:50 -05:00
dispatcher.py Add --no-realpath-base switch to keep symbolic links in BASEDIR 2018-05-21 18:11:28 +02:00
plugin.py Add default options 2016-03-03 09:42:50 -05:00