Create missing target files/folders from source
See original GitHub issueI recently migrated from another dotfile-manager, where there was an option called add
to move an existing file to the dotfile-repository and create a link to the moved file. I really liked that option, as it eases inclusion of new dotfiles. I was a bit confused that dotbot
doesn’t seem to provide something similar (I think that the creator of #135 had the same issue).
I think that dotbot
could easily implement such a feature as default behaviour. If the target is missing and the source exists, it could simply move source to target and then create a link from the source location. From my point of view, this is the only sensible thing dotbot
can do in that situation (except from doing nothing, which is the current behaviour since the fix for #103).
I’ve prepared a pull request with a possible implementation for the behaviour described in this issue.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
Thanks for the feature suggestion / PR.
I think this does not fit the Dotbot model: it’s nice to have things be explicit rather than implicit. Plus, it’s a one-time “setup cost” to move the file into the dotfiles repository, so I think this doesn’t save that much work.
Closing because I’m not planning on adding this feature at this time.