1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 20:19:46 +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`).
Actions cannot obviously be named `pre` or `post`.
Action can even be parameterized. You can define an action taking one or more
arguments which will be replaced depending on its use on different dotfiles.
For example:
```bash
Actions can even be parameterized. For example:
```yaml
actions:
echoaction: echo '{0}' >> {1}
...
config:
backup: true
create: true
dotpath: dotfiles
dotfiles:
f_vimrc:
dst: ~/.vimrc
@@ -436,7 +437,11 @@ dotfiles:
src: xinitrc
actions:
- echoaction "xinitrc installed" /tmp/myotherlog.log
...
profiles:
home:
dotfiles:
- f_vimrc
- f_xinitrc
```
The above will execute `echo 'vim installed' > /tmp/mydotdrop.log` when