mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-11 09:39:17 +00:00
update readme
This commit is contained in:
30
README.md
30
README.md
@@ -405,22 +405,28 @@ when xinitrc is installed.
|
|||||||
|
|
||||||
There are two types of transformations available:
|
There are two types of transformations available:
|
||||||
|
|
||||||
* **read transformations** ([Config](#config) key *trans*): used to transform dotfiles before they are installed
|
* **read transformations**: used to transform dotfiles before they are installed
|
||||||
(used for commands `install` and `compare`). They have two arguments:
|
|
||||||
|
|
||||||
* **{0}** will be replaced with the dotfile to process
|
* [Config](#config) key *trans*
|
||||||
* **{1}** will be replaced with a temporary file to store the result of the transformation
|
* Used for commands `install` and `compare`
|
||||||
|
* They have two arguments:
|
||||||
|
|
||||||
* **write transformations** ([Config](#config) key *trans_write**): used to transform files before updating a dotfile
|
* **{0}** will be replaced with the dotfile to process
|
||||||
(used for command `update`). They have two arguments
|
* **{1}** will be replaced with a temporary file to store the result of the transformation
|
||||||
|
|
||||||
* **{0}** will be replaced with the file path to update the dotfile with
|
* **write transformations**: used to transform files before updating a dotfile
|
||||||
* **{1}** will be replaced with a temporary file to store the result of the transformation
|
*
|
||||||
|
* [Config](#config) key *trans_write*
|
||||||
|
* Used for command `update`
|
||||||
|
* They have two arguments:
|
||||||
|
|
||||||
A typical use-case for transformations is when the dotfile needs to be
|
* **{0}** will be replaced with the file path to update the dotfile with
|
||||||
|
* **{1}** will be replaced with a temporary file to store the result of the transformation
|
||||||
|
|
||||||
|
A typical use-case for transformations is when dotfiles need to be
|
||||||
stored encrypted.
|
stored encrypted.
|
||||||
|
|
||||||
Here's an example of part of a config file to use gpg encrypted dotfiles:
|
Here's an example of part of a config file to use PGP encrypted dotfiles:
|
||||||
```yaml
|
```yaml
|
||||||
dotfiles:
|
dotfiles:
|
||||||
f_secret:
|
f_secret:
|
||||||
@@ -432,13 +438,13 @@ trans:
|
|||||||
```
|
```
|
||||||
|
|
||||||
The above config allows to store the dotfile `~/.secret` encrypted in the *dotpath*
|
The above config allows to store the dotfile `~/.secret` encrypted in the *dotpath*
|
||||||
directory and uses gpg to decrypt it when `install` is run.
|
directory and uses `gpg2` to decrypt it when `install` is run.
|
||||||
|
|
||||||
See the wiki page for a walkthrough on how to deploy this solution as well
|
See the wiki page for a walkthrough on how to deploy this solution as well
|
||||||
as more information on transformations:
|
as more information on transformations:
|
||||||
[wiki transformation page](https://github.com/deadc0de6/dotdrop/wiki/transformations).
|
[wiki transformation page](https://github.com/deadc0de6/dotdrop/wiki/transformations).
|
||||||
|
|
||||||
Note that transformations cannot be used if the dotfiles is to be linked (`link: true`).
|
Note that transformations cannot be used if the dotfiles is to be linked (when `link: true`).
|
||||||
|
|
||||||
## Update dotdrop
|
## Update dotdrop
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user