mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-11 00:54:16 +00:00
update README with include config
This commit is contained in:
28
README.md
28
README.md
@@ -52,6 +52,7 @@ git submodule add https://github.com/deadc0de6/dotdrop.git
|
|||||||
* [List the available profiles](#List-the-available-profiles)
|
* [List the available profiles](#List-the-available-profiles)
|
||||||
* [List configured dotfiles](#List-configured-dotfiles)
|
* [List configured dotfiles](#List-configured-dotfiles)
|
||||||
* [Execute an action when deploying a dotfile](#Execute-an-action-when-deploying-a-dotfile)
|
* [Execute an action when deploying a dotfile](#Execute-an-action-when-deploying-a-dotfile)
|
||||||
|
* [Include all dotfiles from another profile](#Include-all-dotfiles-from-another-profile)
|
||||||
* [Update dotbot](#Update-dotbot)
|
* [Update dotbot](#Update-dotbot)
|
||||||
|
|
||||||
* [Template](#template)
|
* [Template](#template)
|
||||||
@@ -201,8 +202,10 @@ the following entries:
|
|||||||
- <action-key>
|
- <action-key>
|
||||||
```
|
```
|
||||||
|
|
||||||
* **profiles** entry: a list of profiles with a sublist
|
* **profiles** entry: a list of profiles with a list
|
||||||
of dotfiles that need to be deployed for this profile
|
of dotfiles that need to be deployed for this profile
|
||||||
|
* `profiles`: the dotfiles associated to this profile
|
||||||
|
* `include`: include all dotfiles from another profile (optional)
|
||||||
|
|
||||||
```
|
```
|
||||||
<some-name-usually-the-hostname>:
|
<some-name-usually-the-hostname>:
|
||||||
@@ -210,6 +213,10 @@ the following entries:
|
|||||||
- <some-dotfile-key-name-defined-above>
|
- <some-dotfile-key-name-defined-above>
|
||||||
- <some-other-dotfile-key-name>
|
- <some-other-dotfile-key-name>
|
||||||
- ...
|
- ...
|
||||||
|
# Optional
|
||||||
|
include:
|
||||||
|
- <some-other-profile>
|
||||||
|
- ...
|
||||||
```
|
```
|
||||||
|
|
||||||
* **actions** entry: a list of action available
|
* **actions** entry: a list of action available
|
||||||
@@ -318,6 +325,25 @@ to update the submodule:
|
|||||||
git submodule update --recursive --remote
|
git submodule update --recursive --remote
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Include all dotfiles from another profile
|
||||||
|
|
||||||
|
If one profile is using the entire set of another profile, one can use
|
||||||
|
the `include` entry for a clean config file.
|
||||||
|
|
||||||
|
For example:
|
||||||
|
```
|
||||||
|
profiles:
|
||||||
|
host1:
|
||||||
|
dotfiles:
|
||||||
|
- f_xinitrc
|
||||||
|
include:
|
||||||
|
- host2
|
||||||
|
host2:
|
||||||
|
dotfiles:
|
||||||
|
- f_vimrc
|
||||||
|
```
|
||||||
|
Here profile *host1* contains all the dotfiles defined for *host2* plus `f_xinitrc`.
|
||||||
|
|
||||||
# Template
|
# Template
|
||||||
|
|
||||||
Dotdrop leverage the power of [jinja2](http://jinja.pocoo.org/) to handle the
|
Dotdrop leverage the power of [jinja2](http://jinja.pocoo.org/) to handle the
|
||||||
|
|||||||
Reference in New Issue
Block a user