1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-10 00:34:16 +00:00

update readme

This commit is contained in:
deadc0de6
2018-09-24 20:27:35 +02:00
parent 689a348d35
commit 9b84c4e828

View File

@@ -418,13 +418,14 @@ If you don't specify neither `post` nor `pre`, the action will be executed
after the dotfile deployment (which is equivalent to `post`). after the dotfile deployment (which is equivalent to `post`).
Actions cannot obviously be named `pre` or `post`. Actions cannot obviously be named `pre` or `post`.
Action can even be parameterized. You can define an action taking one or more Actions can even be parameterized. For example:
arguments which will be replaced depending on its use on different dotfiles. ```yaml
For example:
```bash
actions: actions:
echoaction: echo '{0}' >> {1} echoaction: echo '{0}' >> {1}
... config:
backup: true
create: true
dotpath: dotfiles
dotfiles: dotfiles:
f_vimrc: f_vimrc:
dst: ~/.vimrc dst: ~/.vimrc
@@ -436,7 +437,11 @@ dotfiles:
src: xinitrc src: xinitrc
actions: actions:
- echoaction "xinitrc installed" /tmp/myotherlog.log - echoaction "xinitrc installed" /tmp/myotherlog.log
... profiles:
home:
dotfiles:
- f_vimrc
- f_xinitrc
``` ```
The above will execute `echo 'vim installed' > /tmp/mydotdrop.log` when The above will execute `echo 'vim installed' > /tmp/mydotdrop.log` when