Ditto: A dotfile manager
Ditto is a small NPM package I made for managing my dotfiles
Installation
This works on Linux and Mac (Windows is WIP). Ditto requires Node v8.5.0+
npm install -g ditto
Setup
To get started. Run ditto
. This will create a .dotfiles
folder in the root of your home directory
and a config.json file for your configuration.
Adding Jobs:
In ~/.dotfiles/config.json
, edit the jobs array, adding an object for every job
{
"name": "", // job name
"path": "", // path after basePath (ie. /.zshrc or /.vim)
"newName": "", // what to rename the file folder in the backup (ie zshrc or vim)
}
Backing up
After adding some jobs to your configuration file, run ditto -b
to backup your dotfiles
Restoring
Restoring is just as easy, just run ditto -r