mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-10 14:29:15 +00:00
Update README.md
This commit is contained in:
@@ -338,7 +338,7 @@ A typical use-case for transformations is when the dotfile needs 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 gpg encrypted dotfiles:
|
||||||
```
|
```yaml
|
||||||
dotfiles:
|
dotfiles:
|
||||||
f_secret:
|
f_secret:
|
||||||
dst: ~/.secret
|
dst: ~/.secret
|
||||||
@@ -355,15 +355,15 @@ directory and uses gpg to decrypt it when install is run.
|
|||||||
Here's how to deploy the above solution:
|
Here's how to deploy the above solution:
|
||||||
|
|
||||||
* import the clear dotfile (creates the correct entries in the config file)
|
* import the clear dotfile (creates the correct entries in the config file)
|
||||||
```
|
```bash
|
||||||
./dotdrop.sh import ~/.secret
|
./dotdrop.sh import ~/.secret
|
||||||
```
|
```
|
||||||
* encrypt the original dotfile
|
* encrypt the original dotfile
|
||||||
```
|
```bash
|
||||||
<some-gpg-command> ~/.secret
|
<some-gpg-command> ~/.secret
|
||||||
```
|
```
|
||||||
* overwrite the dotfile with the encrypted version
|
* overwrite the dotfile with the encrypted version
|
||||||
```
|
```bash
|
||||||
cp <encrypted-version-of-secret> dotfiles/secret
|
cp <encrypted-version-of-secret> dotfiles/secret
|
||||||
```
|
```
|
||||||
* edit the config file and add the transformation to the dotfile
|
* edit the config file and add the transformation to the dotfile
|
||||||
|
|||||||
Reference in New Issue
Block a user