mirror of
https://github.com/shokinn/.files.git
synced 2025-10-13 17:58:31 +00:00
Add documentation for handling encrypted files
This commit is contained in:
parent
e75e94e770
commit
051dba5cf7
1 changed files with 22 additions and 1 deletions
23
README.md
23
README.md
|
@ -50,12 +50,33 @@ I manage my dotfiles using [dotdrop](https://github.com/deadc0de6/dotdrop).
|
|||
brew bundle install --file=~/.files/config/brew/Brewfile
|
||||
```
|
||||
|
||||
## Import new files
|
||||
## Encrypted files
|
||||
|
||||
### Initially import a dot file as encrypted file
|
||||
|
||||
```shell
|
||||
dotdrop import --transw=_encrypt --transr=_decrypt <file>
|
||||
```
|
||||
|
||||
Installs/updates will now be automatically decrypted/encrypted.
|
||||
|
||||
### Decrypt a dotfile manually
|
||||
|
||||
```shell
|
||||
age --decrypt -i ~/.ssh/identities/phg-age-dotfiles -o <ouput paht for decrypted file> <path to encrypted file>
|
||||
```
|
||||
|
||||
### Encrypt a dotfile manually
|
||||
|
||||
```shell
|
||||
cat <path to plain file> | age -R ~/.ssh/identities/phg-age-dotfiles.pub > <path to encrypted file>
|
||||
```
|
||||
|
||||
### Edit an encrypted dotfile
|
||||
|
||||
TBD
|
||||
|
||||
|
||||
## Backup/Restore settings for macOS native user preferences
|
||||
|
||||
See here for a defaults documentation: <https://macos-defaults.com/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue