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

update doc

This commit is contained in:
deadc0de6
2020-09-18 10:18:10 +02:00
parent 067f7eea7b
commit 44a3e7fc15
2 changed files with 15 additions and 12 deletions

View File

@@ -10,7 +10,7 @@ Four types of actions can be defined:
* [Profile actions](#profile-actions)
* [Fake dotfiles and actions](#fake-dotfile-and-actions)
#### Dotfile actions
### Dotfile actions
It is sometimes useful to execute some kind of action
when deploying a dotfile.
@@ -119,7 +119,7 @@ The above will execute `echo 'vim installed' > /tmp/mydotdrop.log` when
vimrc is installed and `echo 'xinitrc installed' > /tmp/myotherlog.log'`
when xinitrc is installed.
#### Default actions
### Default actions
Dotdrop allows to execute an action for any dotfile installation. These actions work as any other action (*pre* or *post*).
@@ -145,13 +145,13 @@ profiles:
- f_vimrc
```
#### Profile actions
### Profile actions
Profile can be either `pre` or `post` actions. Those are executed before
any dotfile installation (for `pre`) and after all dotfiles installation (for `post`)
only if at least one dotfile has been installed.
#### Fake dotfile and actions
### Fake dotfile and actions
*Fake* dotfile can be created by specifying no `dst` and no `src` (see [config format](config-format.md)).
By binding an action to such a *fake* dotfile, you make sure the action is always executed since