anishathalye / dotbot

A tool that bootstraps your dotfiles ⚡️
MIT License
6.9k stars 287 forks source link

Add backup option to link action #349

Open hansegard opened 9 months ago

hansegard commented 9 months ago

Added a backup option to the link action, an option which defaults to false. If backup is set to true, existing files/directories will be backed up by renaming the file on the format <original-filename>.dotbot-backup.

This is useful for distributions where for example .bashrc is created during installation with sane defaults and you don't want to manually back them up.