From 9b84c4e828df17163113f206dd89cdf0872fcc7a Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Mon, 24 Sep 2018 20:27:35 +0200 Subject: [PATCH] update readme --- README.md | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index be16bbd..4f46ea1 100644 --- a/README.md +++ b/README.md @@ -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