clean up old formatting

This commit is contained in:
2026-04-27 13:13:22 +02:00
parent ea4f44e096
commit 319ae8df79
11 changed files with 39 additions and 28 deletions

View File

@@ -8,7 +8,7 @@ requires:
- data/gpg.md
---
Setup [gpg](gpg.md) keys.
Setup [gpg](data/gpg.md) keys.
Show your gpg secret it:
@@ -19,28 +19,37 @@ gpg --list-secret-keys
Then use the id number under `sec` to make a pass repo:
```sh
KEY="$(gpg --list-secret-keys | grep -m 1 -A1 '^sec' | tail -n 1)"
key="$(gpg --list-secret-keys | grep -m 1 -A1 '^sec' | tail -n 1)"
```
```sh
pass init $KEY
pass init $key
cat .password-store/.gpg-id
```
To add a basic password, e.g. for `$WEBSITE`:
To add a basic password, e.g. for `${website}`:
```sh
pass $WEBSITE
pass ${website}
```
To insert a multi-line password, e.g. with a login name:
```sh
pass add -m $WEBSITE
pass add -m ${website}
```
Remove a password:
```sh
pass rm $WEBSITE
pass rm ${website}
```
You can generate passwords with `xkcdpass`.
Automatically insert a password with `pass insert`:
```sh
xkcdpass | pass insert --echo ${website}
```