danemacmillan / dotfiles

These are all the settings you will incrementally set and ultimately forget.
MIT License
10 stars 3 forks source link

Module manager #5

Closed dersam closed 9 years ago

dersam commented 9 years ago

Basic dotfiles module manager. Given a git repository in the config, will clone it to the .modules directory. Once cloned (or pulled if already cloned), will source the .dfconfig, then source the .dfmodule file in the root of the module repository.

To install/update modules: just run dotfiles. Modules are loaded near the end of bootstrap.sh. Modules will be loaded in the order they appear in the module listing config array.

Config files are published to .moduleconfig. They will not be overwritten- if you want to republish it, delete the file from .moduleconfig and run dotfiles- the default config from the module will be published.

Default .dfconfig has no modules. https://github.com/dersam/dotart is a repository with a functional .dfmodule file and module .dfconfig, as an example.

To create a new module for development, run dfmakemodule new/module/path. This will create a module with a blank .dfmodule and .dfconfig, initialized in a git repository.

Also includes a config variable to specify the local path to a module you're developing, so that each change doesn't require a push.